Answers for "js check if object has any property"

4

typescript check if object has key

if ('key' in myObj)
Posted by: Guest on June-21-2020
-1

array has object with property js

myArray.some(obj => obj.property === 'value')
// returns true or false
Posted by: Guest on March-05-2021

Code answers related to "js check if object has any property"

Code answers related to "Javascript"

Browse Popular Code Answers by Language