Answers for "indexOf by object key"

0

indexOf by object key

var index = peoples.findIndex(p => p.attr1 == "john")
Posted by: Guest on July-05-2020
0

js find index of object by value of property and return it's key

const index = Data.findIndex(item => item.name === 'John');
Posted by: Guest on April-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language