chainy-plugin-flatten

1.0.0 • Public • Published

Flatten action for ChainyJS

Build Status NPM version Dependency Status Development Dependency Status
Gittip donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

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/chainy-plugin-flatten@1.0.0

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 b@lupton.cc (https://github.com/balupton)

Sponsors

No sponsors yet! Will you be the first?

Gittip donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright © 2014+ Bevry Pty Ltd us@bevry.me (http://bevry.me)

Package Sidebar

Install

npm i chainy-plugin-flatten

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bevryme