1 min readAug 31, 2019
Useful and clear example Aphinya!
I think your functional filter example could be shortened to the following even--
let neuteredAnimals = animals.filter((a) => { return a.isNeutered; });
let neuteredAnimals = animals.filter((a) => a.isNeutered );
Source: https://stackoverflow.com/a/32040486