Answers for "using index of on array of objects"

3

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);
Posted by: Guest on June-10-2020

Code answers related to "using index of on array of objects"

Code answers related to "Javascript"

Browse Popular Code Answers by Language