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.
13 lines
416 B
13 lines
416 B
2 weeks ago
|
'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);
|
||
|
}
|
||
|
});
|