All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.es.promise.with-resolvers.js Maven / Gradle / Ivy

The newest version!
'use strict';
require('../../modules/es.promise');
require('../../modules/es.promise.with-resolvers');
var call = require('../../internals/function-call');
var isCallable = require('../../internals/is-callable');
var path = require('../../internals/path');

var Promise = path.Promise;
var promiseWithResolvers = Promise.withResolvers;

module.exports = function withResolvers() {
  return call(promiseWithResolvers, isCallable(this) ? this : Promise);
};




© 2015 - 2024 Weber Informatics LLC | Privacy Policy