0.0.1 • Published 12 years ago

split-every v0.0.1

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

split-every build status

split a list in length-n pieces

Example

var splitEvery = require("split-every")
    , assert = require("assert")

var listOfTuples = splitEvery(2, [1,2,3,4,5,6])

assert.equal(listOfTuples, [[1,2], [3,4], [5,6]])

Installation

npm install split-every

Tests

make test

Contributors

  • Raynos

MIT Licenced