índice de clave de objeto
var index = peoples.findIndex(p => p.attr1 == "john")
Lively Lizard
var index = peoples.findIndex(p => p.attr1 == "john")