lamdba
refers to a lambda function, in this case x => x * 2
These were tested by running each one 2500 times, on an array of 2500 values (from 0 to 2499).
| **Chrome** | **Firefox** | **Safari** |
--------------------|------------|-------------|------------|
_.map(lambda)
| 127 ms | 116 ms | 114 ms |
R.map(lambda)
| 87 ms | 83 ms | 84 ms |
Array#map(lambda)
| 2.57 sec | 2.58 sec | 2.59 sec |
Lodash has always prided itself on being fast, but I hadn't realized that it was that much faster than Array#map.