core-js-pure
Version:
Standard library
12 lines (10 loc) • 379 B
JavaScript
var $ = require('../internals/export');
var iteratorWindow = require('../internals/iterator-window');
// `Iterator.prototype.windows` method
// https://github.com/tc39/proposal-iterator-chunking
$({ target: 'Iterator', proto: true, real: true, forced: true }, {
windows: function windows(windowSize) {
return iteratorWindow(this, windowSize, false);
}
});
;