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
const deepMap=(input,callback)=>input.map(entry=>entry.map?deepMap(entry,callback):callback(entry)) //test deepMap([1,2,3,[1,2]],x=>x*2) // [1,4,9,[1,4]]