Indeks dari Kunci Objek

var index = peoples.findIndex(p => p.attr1 == "john")
Lively Lizard