UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

14 lines 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.triplewise = triplewise; const TriplewiseIterator_1 = require("./internal/TriplewiseIterator"); const toIterator_1 = require("./toIterator"); /** * Returns a new iterator of triplets (tuples) of the values in input. The number of triplets will always be two * fewer than the number of values in this iterator. Will be empty if input has fewer than three values. */ function triplewise(arg) { return new TriplewiseIterator_1.default((0, toIterator_1.default)(arg)); } exports.default = triplewise; //# sourceMappingURL=triplewise.js.map