Categories
How to JavaScript Lodash.js

How to find if an Object property exists in an array with Lodash.js and JavaScript?

Estimated read time 1 min read

Use Lodash’s _.some() method to check if an Object property exists in an array. Pass a callback to the method to compare the Object property with the array elements.