Skip to content

Instantly share code, notes, and snippets.

@EminQasimov
Last active April 22, 2019 15:35
Show Gist options
  • Save EminQasimov/25fc1fd44c5436ce9396f9146c30e68b to your computer and use it in GitHub Desktop.
Save EminQasimov/25fc1fd44c5436ce9396f9146c30e68b to your computer and use it in GitHub Desktop.
short access to Math.functions
/* because me lazy */
Object.getOwnPropertyNames(Math).map(function(p) {
window[p] = Math[p];
});
// PI/3,
// cos(a);
// sin(a);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment