You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
582 B
17 lines
582 B
1 year ago
|
'use strict';
|
||
|
require('../../modules/es.array.iterator');
|
||
|
require('../../modules/es.object.to-string');
|
||
|
require('../../modules/es.promise');
|
||
|
require('../../modules/es.promise.all-settled');
|
||
|
require('../../modules/es.string.iterator');
|
||
|
var call = require('../../internals/function-call');
|
||
|
var isCallable = require('../../internals/is-callable');
|
||
|
var path = require('../../internals/path');
|
||
|
|
||
|
var Promise = path.Promise;
|
||
|
var $allSettled = Promise.allSettled;
|
||
|
|
||
|
module.exports = function allSettled(iterable) {
|
||
|
return call($allSettled, isCallable(this) ? this : Promise, iterable);
|
||
|
};
|