DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
using index of on array of objects
arr = [{x: "a", y: 1}, {x: "something", y: 2}] arr.findIndex(obj => obj.x === "a" && obj.y === 1);
PREVIOUS
NEXT
Tagged:
#index
#array
#objects
ADD COMMENT
Topic
COMMENT
Name
6+9 =
Submit