2 lines
79 B
JavaScript
2 lines
79 B
JavaScript
// flatten :: NestedList a -> [a]
|
|
const flatten = nest => nest.flat(Infinity);
|