Let's say we want to log obj inside this .map() function here: const arr = [ { val: 1 }, { val: 2 }, { val: 3 } ]; const nums = arr.map(obj => obj.val*2); Well, dang! Now we have to convert this to a multi-line function, right? const nums = a...

Markdown supported · ⌘↵ to post
No responses yet.