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