rjn945
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
4 ms·
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
Happily, you're first example is actually already supported in the latest Underscore (1.6.0): _.each([1,2,3], _.partial(something, _, 'param'))
Example: _.map([1, 2, 3, 4], _.partial(Math.pow, _, 8))
// - 6.▲
- 7.▲
- 8.▲
- 9.▲
- 10.▲
- 11.▲
- 12.▲
- 13.▲
- 14.▲
- 15.▲