Skip to content

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

License

Notifications You must be signed in to change notification settings

FagnerMartinsBrack/flatten-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages