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