first
This commit is contained in:
15
node_modules/core-js/modules/esnext.bigint.range.js
generated
vendored
Normal file
15
node_modules/core-js/modules/esnext.bigint.range.js
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
'use strict';
|
||||
/* eslint-disable es/no-bigint -- safe */
|
||||
var $ = require('../internals/export');
|
||||
var NumericRangeIterator = require('../internals/numeric-range-iterator');
|
||||
|
||||
// `BigInt.range` method
|
||||
// https://github.com/tc39/proposal-Number.range
|
||||
// TODO: Remove from `core-js@4`
|
||||
if (typeof BigInt == 'function') {
|
||||
$({ target: 'BigInt', stat: true, forced: true }, {
|
||||
range: function range(start, end, option) {
|
||||
return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));
|
||||
}
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user