flattery

1.1.0 • Public • Published

Build Status

flattery

Flattens an array of nested arrays into a list of scalar elements

Instructions

Install via npm:

npm install flattery --save

Use in your Node scripts like this:

const flattery = require('flattery');
 
var flattened = flattery([[1, 2, [3]], 4]); // -> [1, 2, 3, 4]

License

MIT

Copyright (c) Claudio Procida 2015

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.0
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i flattery

Weekly Downloads

1

Version

1.1.0

License

MIT

Last publish

Collaborators

  • claudiopro