72
rated 0 times
[
79]
[
7]
/ answers: 1 / hits: 146231
/ 8 Years ago, wed, february 10, 2016, 12:00:00
Is there a method in lodash to map over an array of arrays
I would like to do something like this so that it keeps the structure of the array.
def double(x) { return x*2 }
_([[1,2],[3,4]]).somemethod(double) == [[2,4],[6,8]]
More From » underscore.js