Skip to content

Instantly share code, notes, and snippets.

@djom202
Created March 24, 2022 18:30
Show Gist options
  • Save djom202/fc362aa5df933f5cdf59b6dd73b59345 to your computer and use it in GitHub Desktop.
Save djom202/fc362aa5df933f5cdf59b6dd73b59345 to your computer and use it in GitHub Desktop.
Get a next multiple of 5 in this case
function findMultiples(x) {
return Math.ceil(x/5)*5
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment