Created
August 11, 2017 08:54
-
-
Save iamgoangle/743dfddd8f2c44fcdfea3214f745dd28 to your computer and use it in GitHub Desktop.
Using Math.min()
This file contains hidden or 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
| let number = [9, 8, 7, 1]; | |
| console.log(Math.min(number)); // NaN | |
| console.log(Math.min(...number)); // 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment