Skip to content

⛑ Flattens an array of nested arrays into a list of numbers

Notifications You must be signed in to change notification settings

claudiopro/flattery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

flattery

Flattens an array of nested arrays into a list of scalar elements

Instructions

Install via npm:

npm install flattery --save

Use in your Node scripts like this:

const flattery = require('flattery');

var flattened = flattery([[1, 2, [3]], 4]); // -> [1, 2, 3, 4]

License

MIT

Copyright (c) Claudio Procida 2015-2016

About

⛑ Flattens an array of nested arrays into a list of numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published