FagnerMartinsBrack / flatten-array

Recursively flattens an Array. I got ownership of this NPM package after the left-pad incident.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Recursively flattens an Array. I got ownership of this NPM package after the left-pad incident.

License:MIT License


Languages

Language:JavaScript 100.0%