Skip to content

Instantly share code, notes, and snippets.

@Joilence
Created January 22, 2020 10:07
Show Gist options
  • Save Joilence/b36efabb75420902c463298179c900d0 to your computer and use it in GitHub Desktop.
Save Joilence/b36efabb75420902c463298179c900d0 to your computer and use it in GitHub Desktop.
Math #js
k = b && a / b
// equal to
if (b === 0) {
k = 0;
} else {
k = a / b
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment