Please How can i retrieve the index of these array, mostly when i loop through it by
var objRecord = {"ID":1,"Name":"Precious","PhoneNo":08051170615,"Address":"London"}
var arrData = [objRecord];
arrData.push({ "ID": 2, "Name": "locas", "PhoneNo": 08051109615, "Address": "gameondon"})
my aim is to get the index of the second element with ID 2
using these function
function GetElementIndex(id) {
//code
}