inpairs

1.0.3 • Public • Published

inpairs Build Status

Iterates a given list in pairs of two.

const ip = require('inpairs')
const list = [1, 2, 3]
 
ip(list, (a, b) => {
  //called with the following tupels:
  //1, 2
  //2, 3
})

Package Sidebar

Install

npm i inpairs

Weekly Downloads

13

Version

1.0.3

License

MIT

Unpacked Size

2.72 kB

Total Files

6

Last publish

Collaborators

  • zaphod1984