chainy-plugin-flatten
v1.0.0
Published
Chainy action that replaces the chain's data of a nested array into a single shallow array
Downloads
7
Maintainers
Readme
Flatten action for ChainyJS
Chainy action that replaces the chain's data of a nested array into a single shallow array
require('chainy').create().require('set flatten log')
.set([1, [2], [3, [[4]]]])
.flatten()
.log() // [1, 2, 3, 4]
Install
NPM
- Use:
require('chainy-plugin-flatten')
- Install:
npm install --save chainy-plugin-flatten
Browserify
- Use:
require('chainy-plugin-flatten')
- Install:
npm install --save chainy-plugin-flatten
- CDN URL:
//wzrd.in/bundle/[email protected]
Ender
- Use:
require('chainy-plugin-flatten')
- Install:
ender add chainy-plugin-flatten
History
Discover the change history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
Sponsors
No sponsors yet! Will you be the first?
Contributors
These amazing people have contributed code to this project:
License
Licensed under the incredibly permissive MIT license
Copyright © 2014+ Bevry Pty Ltd [email protected] (http://bevry.me)