Last active
April 22, 2019 15:35
-
-
Save EminQasimov/25fc1fd44c5436ce9396f9146c30e68b to your computer and use it in GitHub Desktop.
short access to Math.functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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