Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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

const index = objectArray.findIndex((item) => item.name === 'Israel');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #index #property #array #object #typescript
ADD COMMENT
Topic
Name
8+3 =