JSFiddle - React, Tailwind, and code Playground

by Richard Hunter

JavaScript

let obj = Object.create(null, {
  then: {
    get: function() {
      ++numberOfTimesThenWasRetrieved;
      return function thenMethodForX(onFulfilled) {
        onFulfilled();
      };
    }
  }
});

var type = typeof obj;
console.log(type);