4 ms·
For the last point, you can wrap the object in parens: let generatePerson = name => ({ name, id: generateId() })
by ArchieMaclean 4y ago
For the last point, you can wrap the object in parens:
let generatePerson =
name => ({ name, id: generateId() })