UNPKG

iteragain

Version:

Javascript Iterable/Iterator/Generator-function utilities.

11 lines 482 B
import TriplewiseIterator from './internal/TriplewiseIterator'; import toIterator from './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. */ export function triplewise(arg) { return new TriplewiseIterator(toIterator(arg)); } export default triplewise; //# sourceMappingURL=triplewise.js.map