Answers for "match array value to object property name"

1

find object in array javascript with property

let obj = objArray.find(obj => obj.id == 3);
Posted by: Guest on January-02-2021
0

search an array of objects with specific object property value

var result = jsObjects.find(obj => {
  return obj.b === 6
})
Posted by: Guest on May-25-2020

Code answers related to "match array value to object property name"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language