flatten-array

1.0.0 • Public • Published

Flatten Array

A simple module that deeply flattens a given Array

Installation

In your npm supported project, run:

$ npm install flatten-array --save

Include the module in your desired file:

var flattenArray = require("flatten-array");

Basic Usage

Flattens an array deeply:

flattenArray([1, [2, 3, [4, 5]]]); // => [1, 2, 3, 4, 5]

Manual release steps

  • Increment the "version" attribute of package.json
  • Commit with the message "Release version x.x.x"
  • Create version tag in git
  • Create a github release
  • Release on npm

Readme

Keywords

Package Sidebar

Install

npm i flatten-array

Weekly Downloads

45

Version

1.0.0

License

MIT

Last publish

Collaborators

  • fagner