Socket
Socket
Sign inDemoInstall

flatten-array

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flatten-array

Recursively flattens an Array


Version published
Weekly downloads
55
increased by30.95%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 09 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc