javascript return the first value of array that matches code example
Example: javascript find object by property in array
// To find a specific object in an array of objects
myObj = myArrayOfObjects.find(obj => obj.prop === 'something');
// To find a specific object in an array of objects
myObj = myArrayOfObjects.find(obj => obj.prop === 'something');