DEV Community

Discussion on: Is it good to use _.findWhere always?

Collapse
 
chiangs profile image
Stephen Chiang • Edited

If you're only looking for the first instance of the object in the array, you can just use the native method array.find if you want all the instances of that object from the array you can use array.filter ... I don't think you don't need lodash for that operation.