package.modules.esnext.number.range.js Maven / Gradle / Ivy
The newest version!
'use strict';
var $ = require('../internals/export');
var NumericRangeIterator = require('../internals/numeric-range-iterator');
// `Number.range` method
// https://github.com/tc39/proposal-Number.range
// TODO: Remove from `core-js@4`
$({ target: 'Number', stat: true, forced: true }, {
range: function range(start, end, option) {
return new NumericRangeIterator(start, end, option, 'number', 0, 1);
}
});
© 2015 - 2024 Weber Informatics LLC | Privacy Policy