3 ms·
Would be a good thing to suggest to the team, it is the first release of the language, after all. In the interim, a simple library like underscore is quite suc
by wingspan 14y ago
Would be a good thing to suggest to the team, it is the first release of the language, after all.
In the interim, a simple library like underscore is quite succinct:
_.map([1,2,3], n => n * n)
With more library support you could even do infinite lists with something like this:
_.generate(index => 1.0 / index);