How do you check if a property is in an object in JavaScript? Learn three ways in this video. Two of the ways are ‘in’ and ‘hasOwnProperty’.
Code:
🔗 http://codepen.io/beaucarnes/pen/ZLrG...
More information:
🔗 http://www.jstips.co/en/check-if-a-pr...
Twitter: @jsnugget
JS Nuggets: Brisk JavaScript training and tips