Easy console.log() inside one liner functions
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...
blog.jsbits-yo.com1 min read