code: function promisify() {
      var promiseLike = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
  
      if (promiseLike instanceof _es6Promise.Promise) {
          return promiseLike;
      }
  
      if (typeof promiseLike === "function") {
          return promisify(promiseLike());
      }
  
      return new _es6Promise.Promise(function (resolve, reject) {
          promiseLike === false ? reject() : resolve(promiseLike);
      });
  }
docs: Transform everything into a promise
  
  @param {*} promiseLike
  @returns {Promise}