Skip to content

Instantly share code, notes, and snippets.

@lac5
Created November 20, 2019 16:56
Show Gist options
  • Save lac5/a5fe5598171affdcabf4d6253c65702a to your computer and use it in GitHub Desktop.
Save lac5/a5fe5598171affdcabf4d6253c65702a to your computer and use it in GitHub Desktop.
export default function floorMod(a, b) {
return a - Math.floor(a / b) * b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment