how to get an element of object by index in 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');