0.0.1 • Published 6 years ago

@lazarljubenovic/iterators v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Iterators

Installation

$ yarn add @lazarljubenovic/iterators

Usage

import * as its from '@lazarljubenovic/iterators'

const array = [1, 2, 3, 4]
const paris = [...its.pairwise(array)] // => [[1, 2], [2, 3], [3, 4]]

List of iterators

  • pairwise
  • pairwiseCircular