js search object array 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)