Share your code. Components are building blocks, you are the architect.

utils/flatten
v1.0.0
1.0.0
MIT
PUBLIC
0
1     DEPENDENCIES
Build: none
BuildNone
Returns a new list by pulling every item out of it (and all its sub-arrays)

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/flatten in your project
npm i @bit/bit.ramda.utils.flatten
Copied

flatten (list:Array) : Array

Returns a new list by pulling every item out of it (and all its sub-arrays) and putting them in a new array, depth-first.

Example

R.flatten([1, 2, [3, 4], 5, [6, [7, 8, [9, [10, 11], 12]]]]);
     //=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

Argument

list: Array

The array to consider.

Returns

Array

The flattened list.