This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Array Flat | |
* This a commonJS module written in ES6 that will flatten | |
* an array of arbitrarily nested arrays of | |
* integers into a flat array of integers. | |
* | |
* @example | |
* import arrayFlat from '/your/path/array-flat' | |
* | |
* flatten([0, 1, 3, [4, 5, 6, [4, 6]]]) |
OlderNewer