JSFiddle - React, Tailwind, and code Playground
JavaScript
let obj = Object.create(null, {
then: {
get: function() {
++numberOfTimesThenWasRetrieved;
return function thenMethodForX(onFulfilled) {
onFulfilled();
};
}
}
});
var type = typeof obj;
console.log(type);