Q:

typescript check if object has key

myObj.hasOwnProperty('key') // it checks object for particular key and not on prototype   
8
if ('key' in myObj)
1

New to Communities?

Join the community