DEV Community

Discussion on: My Top 5 JavaScript Tips & Tricks for Writing Cleaner Code

Collapse
 
dr_sam_walpole profile image
Sam Walpole

Techincally yes, but my point was that by assigning that function to a named variable, you get a much more natural, readable expression: people.map(toViewModel)