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
It's much more elegant to use the es6 destructuring syntax within your map statement:
array.map(([ a, b ]) => [ a*2, b*2 ]);