Legend:
- Unmodified
- Added
- Removed
-
imaps-frontend/node_modules/es-abstract/2018/IsPromise.js
r0c6b92a r79a0317 1 1 'use strict'; 2 2 3 var callBound = require('call-b ind/callBound');3 var callBound = require('call-bound'); 4 4 5 5 var $PromiseThen = callBound('Promise.prototype.then', true); 6 6 7 var Type = require('./Type');7 var isObject = require('../helpers/isObject'); 8 8 9 9 // https://262.ecma-international.org/6.0/#sec-ispromise 10 10 11 11 module.exports = function IsPromise(x) { 12 if ( Type(x) !== 'Object') {12 if (!isObject(x)) { 13 13 return false; 14 14 }
Note:
See TracChangeset
for help on using the changeset viewer.