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]
- Use:
require('chainy-plugin-flatten')
- Install:
npm install --save chainy-plugin-flatten
- Use:
require('chainy-plugin-flatten')
- Install:
npm install --save chainy-plugin-flatten
- CDN URL:
//wzrd.in/bundle/[email protected]
- Use:
require('chainy-plugin-flatten')
- Install:
ender add chainy-plugin-flatten
Discover the change history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Licensed under the incredibly permissive MIT license
Copyright © 2014+ Bevry Pty Ltd [email protected] (http://bevry.me)