Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flatten-arr

wilmoore23MIT0.1.1

Flattens a nested array recursively for Node.js and browsers.

_.flatten, array, array flatten, array-flatten, flatten, flatten array, flatten-array

readme

flatten-arr

Flattens a nested array recursively for Node.js and browsers.

Build Status Code Climate js-standard-style

npm install flatten-arr --save

You can also use Duo, Bower or download the files manually.

npm stats

npm NPM downloads David

API Example

var flatten = require('flatten-arr')

flatten([1, [[[2, [[3, 4]], 5], 6]], [7], [[[8]]], 9])
//=> [1, 2, 3, 4, 5, 6, 7, 8, 9]

API

flatten(list)

arguments
  • list (array) Nested array.
returns
  • (array) Flattened array.

Inspriation

Contributing

SEE: contributing.md

Licenses

GitHub license

changelog

Change Log

All notable changes to this project will be documented in this file (keepachangelog.com).

0.1.0 - 2016-01-10

Added

  • Initial Version.