Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@bemoje/arr-flatten

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@bemoje/arr-flatten

Flattens the passed array recursively.

unpublished
latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
1
Created
Source

@bemoje/arr-flatten

Flattens the passed array recursively.

Version

NPM version

Travis CI

dependencies

Dependencies

dependencies

Stats

NPM downloads Forks

Donate

Buy Me A Beer donate button PayPal donate button

Installation

npm install @bemoje/arr-flatten
npm install --save @bemoje/arr-flatten
npm install --save-dev @bemoje/arr-flatten

Usage

import arrFlatten from '@bemoje/arr-flatten'

arrFlatten([1, [2]])
//=> [1, 2]

arrFlatten([1, [2, [3]]])
//=> [1, 2, 3]

Tests

Uses Jest to test module functionality. Run tests to get coverage details.

npm run test

API

arrFlatten

Flattens the passed array recursively.

Parameters
  • arr Array the array to flatten
Returns

Array<any>

Keywords

flattens

FAQs

Package last updated on 15 Aug 2020

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