O'Reilly logo
  • Patrick S thinks this is interesting:

You may be familiar with the Array#map method available in many JavaScript implementations. It’s meant to take a function and call it for every element in an array, returning a new array with the new values. It’s used as follows:

[null, undefined, 1, 2, false].map(existy
		

From

Cover of Functional JavaScript

Note

map() example