Use findIndex
var idToSearch = "1";
var index = people.findIndex( s => s.id == idToSearch );
solved Find where item is in JSON array by given value
Use findIndex
var idToSearch = "1";
var index = people.findIndex( s => s.id == idToSearch );
solved Find where item is in JSON array by given value