Last active
August 29, 2015 14:10
-
-
Save Aleksey-Danchin/2e5c3d0a416656fda357 to your computer and use it in GitHub Desktop.
It's a kind of magic JavaScript (part 1)
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
// It's a kind of magic JavaScript (part 1) | |
['10', '10', '10'].map(parseInt); // [ 10, NaN, 2 ] | |
['10', '10', '10'].map(Number); // [ 10, 10, 10 ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment