GoScrobble/web/node_modules/core-js-pure/modules/esnext.number.range.js

12 lines
369 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
'use strict';
var $ = require('../internals/export');
var NumericRangeIterator = require('../internals/numeric-range-iterator');
// `Number.range` method
// https://github.com/tc39/proposal-Number.range
$({ target: 'Number', stat: true }, {
range: function range(start, end, option) {
return new NumericRangeIterator(start, end, option, 'number', 0, 1);
}
});