JSFiddle - React, Tailwind, and code Playground
JavaScript
var Assertion = function() {
return { "dummy": "data" };
}
Object.defineProperty(Object.prototype, 'should', {
set: function(){},
get: function(){
return new Assertion(this);
}
});
Object.defineProperty(Object.prototype, 'should', { value: undefined });
console.log(({}).should === undefined);