how to get index of property in object js 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');