Answers for "how to use arrow function in javascript to find particular object from list of objects"

13

javascript find object by property in array

// To find a specific object in an array of objects
myObj = myArrayOfObjects.find(obj => obj.prop === 'something');
Posted by: Guest on April-20-2020
12

javascript array.find

const array1 = [5, 12, 8, 130, 44];

const found = array1.find(element => element > 10);

console.log(found);
// expected output: 12
Posted by: Guest on June-01-2020

Code answers related to "how to use arrow function in javascript to find particular object from list of objects"

Code answers related to "Javascript"

Browse Popular Code Answers by Language