npm)
underscore.slice (🔨 Plugin for Underscore.js: slice array to deep-levels array
.__ .__ _____| | |__| ____ ____ / ___/ | | |/ ___\/ __ \ \___ \| |_| \ \__\ ___/ /____ >____/__|\___ >___ > \/ \/ \/
Install
npm install underscore.slice
Usage
var _ = ;var slice = ;_; var list = 1 2 3 4 5;_; // [[1, 2], [3, 4], [5]]_; // [[1, 2, 3, 4], [5]]
License
The MIT License @ 2014