Answers for "typescript find index of object in array by property"

0

how to find the index of property in array of object in typescript

const index = objectArray.findIndex((item) => item.name === 'Israel');
Posted by: Guest on November-09-2021
0

typescript array of object findindex

this.someArray.findIndex((x:any)=>{return x.propertyName == 'matchWithThis'});
Posted by: Guest on September-22-2021

Code answers related to "typescript find index of object in array by property"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language