1.0.1 • Published 12 months ago

flattenme v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

Flatten N-dimensional array into One dimensional

For Example:- Input is [[1, [2, [3, 4]]], 5, [6, [7, 8, 9]], 10] , output will be 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,

Usage

var FlattenArr = require('Flattenme'); //For ES6 import :- import Flattenme from "flattenme";
let FlattenedArr = Flattenme([[1,[3,4,5]]]) //expectedOutput :- [1,3,4,5]
1.0.1

12 months ago

1.0.0

12 months ago