5 lines
No EOL
110 B
JavaScript
5 lines
No EOL
110 B
JavaScript
export function flatten(values) {
|
|
return values.reduce(function (a, b) {
|
|
return a.concat(b);
|
|
}, []);
|
|
} |