Find
the value of the first element/object in the array, otherwise undefined
is returned.
let result = jsObjects.find(obj => { return obj.b === 6 });
Find
the value of the first element/object in the array, otherwise undefined
is returned.
let result = jsObjects.find(obj => { return obj.b === 6 });