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}`);
Enter fullscreen mode Exit fullscreen mode

Keep up the great work!

Collapse
 
tiffengineer 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!