get object value by index javascript code example
Example: js find index of object by value of property and return it's key
const index = Data.findIndex(item => item.name === 'John');
const index = Data.findIndex(item => item.name === 'John');