DEV Community

Discussion on: Map: Another Higher Order Function

Collapse
 
jbbn profile image
João Bueno • Edited

Great post Tiffany!

In ES6, I really like to do stuff like this:

const names = animals.map(({name, species}) => `${name} is a ${species}`);

Keep up the great work!

Collapse
 
tiffany profile image
tiff

Template literals are the sh*t! Yeah. I should have done that but didn't think to use it there. Thanks for the suggestion!