just-flatten

1.0.1 • Public • Published

Recursively flatten arrays!

npm install just-flatten
var flatten = require('just-flatten')

Usage

flatten([[1,2,[3]],4]) // => [1,2,3,4]

The function expects a single argument: an array to be flattened. Any other value is returned as-is.

License

WTFPL

/just-flatten/

    Package Sidebar

    Install

    npm i just-flatten

    Weekly Downloads

    372

    Version

    1.0.1

    License

    WTFPL

    Unpacked Size

    1.75 kB

    Total Files

    4

    Last publish

    Collaborators

    • tehshrike