Skip to content

Flatten provided data (including nested arrays) into a flat array.

License

Notifications You must be signed in to change notification settings

falinsky/flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flatten

Flatten provided data (including nested arrays) into a flat array.

Installation

npm i @falinsky/flatten

Usage

const flatten = require('@falinsky/flatten');

console.log(flatten([1, [2, 3], [4, [5]]])); // outputs [1, 2, 3, 4, 5]

About

Flatten provided data (including nested arrays) into a flat array.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published