esnext.number.range.js 369 B

1234567891011
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var NumericRangeIterator = require('../internals/numeric-range-iterator');
  4. // `Number.range` method
  5. // https://github.com/tc39/proposal-Number.range
  6. $({ target: 'Number', stat: true }, {
  7. range: function range(start, end, option) {
  8. return new NumericRangeIterator(start, end, option, 'number', 0, 1);
  9. }
  10. });