— I wonder how I'd do in an interview nowadays
— Does map
do anything special that forEach
doesn't for that use case?
— Eh, didn't really thing about it
— I just always use map, I doubt there's any overhead other than constructing a final array
— Since console.log is technically a side effect it doesn't really fit into my scheme anymore
— You could also just pass console.log without wrapping it
— Guys, quick question...
— Https://www.npmjs.com/package/node-fetch
— I've been reading a little on polyfills and stuff