0.1.5 • Published 6 years ago

flatten-arrayjs v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Flatten Arrays

A small library that flatten deeply nested arrays

Installation

npm install flatten-arrayjs

Usage

let arr = [1,[2,3,[4,5,[6]]]];

var flat = require('flatten-arrayjs');

var formattedNum = flat(arr);

Output should be [1,2,3,4,5,6]

Tests

npm test

Contributing

Please contribute by adding more functions related to deeply nested arrays.

0.1.5

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago