DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+1 =
Submit