array javascript find object code example
Example 1: javascript find object in array
myArray.findIndex(x => x.id === '45');
Example 2: javascript find object array
const found = accesses.find(x => x.Resource === 'Clients');
console.log(found)
myArray.findIndex(x => x.id === '45');
const found = accesses.find(x => x.Resource === 'Clients');
console.log(found)