Jak sprawdzić, czy obiekt ma kluczowy JavaScript
myObj.hasOwnProperty('key') // it checks object for particular key and not on prototype
Proud Pony
myObj.hasOwnProperty('key') // it checks object for particular key and not on prototype
if ('key' in myObj)