Indexof nach Objektschlüssel

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