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
____ ___________ ____ __ ________ ___ ____ | |
/ __ \/ ____/ ___// __ \/ / / / ____/ |__ \ / __ \ | |
/ /_/ / __/ \__ \/ / / / / / / __/ __/ / / / / / | |
/ _, _/ /___ ___/ / /_/ / /_/ / /___ / __/_/ /_/ / | |
/_/ |_/_____//____/\___\_\____/_____/ /____(_)____/ | |
===================================================== | |
## Here's what needs to be done |
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
// ZOMG!! | |
['11','11','11','11'].map(parseInt) | |
//=> [11, NaN, 3, 4] | |
// Fixing JavaScript foibles with delicious curry! | |
['11','11','11','11'].map(curry(parseInt)); | |
//=> [11, 11, 11, 11] |