Answers for "return index of array with function in array angular"

0

return index of array with function in array angular

const a = [
{ firstName: "Adam", LastName: "Howard" },
{ firstName: "Ben", LastName: "Skeet" },
{ firstName: "Joseph", LastName: "Skeet" }];

let index = a.findIndex(x => x.LastName === "Skeet");
console.log(index);
Posted by: Guest on January-26-2021

Code answers related to "return index of array with function in array angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language