Ignore:
Timestamp:
01/21/25 03:08:24 (3 days ago)
Author:
stefan toskovski <stefantoska84@…>
Branches:
main
Parents:
0c6b92a
Message:

F4 Finalna Verzija

File:
1 edited

Legend:

Unmodified
Added
Removed
  • imaps-frontend/node_modules/es-abstract/2016/IsPromise.js

    r0c6b92a r79a0317  
    11'use strict';
    22
    3 var callBound = require('call-bind/callBound');
     3var callBound = require('call-bound');
    44
    55var $PromiseThen = callBound('Promise.prototype.then', true);
    66
    7 var Type = require('./Type');
     7var isObject = require('../helpers/isObject');
    88
    99// https://262.ecma-international.org/6.0/#sec-ispromise
    1010
    1111module.exports = function IsPromise(x) {
    12         if (Type(x) !== 'Object') {
     12        if (!isObject(x)) {
    1313                return false;
    1414        }
Note: See TracChangeset for help on using the changeset viewer.