I have the following list constructed:
var names_Array= [];
var names_List= new WinJS.Binding.List(names_Array);
names_List.push({ name: "Joe Dowling", image: "image/Joe Dowling.png", ClientID: "1234" }, { name: "Esteban Flamenco ", image: "image/Esteban Flamenco.png", ClientID: "6666" });
I want to be able to get the index of the list where the ID is 6666. My attempt thus far was to do the following:
var number = names_List.indexOf('{ name: "Esteban Flamenco ", image: "image/Esteban Flamenco.png", ClientID: "6666" }');
console.log(number);
But I am getting -1 (i.e. not found). Where am I going wrong?