Current collected state Current
Observed since 20 Oct, 18:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Make multi-dimensional arrays as flat as a pancake
npm install 1d
const flatten = require('1d');
flatten( [['a'], 'b', ['c', ['d']]] );
// ['a', 'b', 'c', 'd']
OBS: This is a built-in feature from Node.js
11.15.0and up. Check out Array.prototype.flat
Flatten an array into a sweet 1D array
Type: Array
Input array to flatten
Type: Array
Default: []
Initial array.
Note: The inital array is not being flattened
MIT © Terkel Gjervig
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 18:27 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:c58efbc889d0a22a593540d197ea882c641043030af40afaec7bf1097d15f7eb