const arr = [1,2,[3,4,5,[6,7,[8,9],10]]];
Lets say we have a nested array like above. Is there a specific deep recursion method?
Instead of calling the same function in function or iteratively looping; is there any deepMap function which iterates over all nested items?
Something traverses the object tree entirely.
R.deepMap(function(e){
console.log(e)
});
//1,2,3,4,5,6,7,8,9,10