Chunks
Chunks is a super duper, teeny tiny functional library for JavaScript.
The annotated source code is available.
Information
- Version: 0.2.6
- Author: Ellen Gummesson
- License: MIT
- Repository: git
- Registry: chunks
- Keywords: functional, utility
Installation
npm install chunks
You can also install it via Bower:
bower install chunks
Usage
There's currently 20 functions available in the library which you can use to your heart's content.
The Collection functions can be used on both arrays and objects, while the others (except for the Types functions) are meant to be used on their respective type.
Functions
Collections
Chunks.forEachorChunks.eachChunks.mapChunks.filterChunks.reduceChunks.someChunks.everyChunks.indexChunks.containsChunks.sizeChunks.cloneChunks.sort
Types
Chunks.isArrayChunks.isObject
Arrays
Chunks.firstChunks.lastChunks.flatten
Objects
Chunks.keysChunks.valuesChunks.hasChunks.extend
An API reference is also available.
For more information, go to the source code repository.