JSFiddle - React, Tailwind, and code Playground
by adeneo
JavaScript
var test = function() {}
test.prototype.newProp = function() {}
var instance = new test();
console.log( instance.hasOwnProperty('newProp') ); // false
console.log( 'newProp' in instance ); // true