Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find the key of a value in array js

Object.keys(array).find(item => array[item].id === modifiedItem.id)
 
PREVIOUS NEXT
Tagged: #find #key #array #js
ADD COMMENT
Topic
Name
8+3 =