array-cutter
Make an equal division to an array.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install array-cutter 
SYNC missed versions from official npm registry.

array-cutter NPM version NPM downloads Build Status

Make an equal division to an array.

Install

$ npm install --save array-cutter

Usage

const arrayCutter = require('array-cutter')

arrayCutter([1, 2, 3, 4, 5, 6, 7])

// returns
// array is divided by 5
[
	[1, 2, 3, 4, 5],
	[6, 7]
]

// divided by a number
arrayCutter([1, 2, 3, 4, 5, 6, 7], 4)

// returns
[
	[1, 2, 3, 4],
	[5, 6, 7]
]

License

MIT © EGOIST

Current Tags

  • 0.0.2                                ...           latest (5 years ago)

2 Versions

  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |