chore: simpler

This commit is contained in:
cha0s 2020-06-19 15:29:21 -05:00
parent ffa5e65835
commit d9da7de6d0

View File

@ -3,7 +3,7 @@ export function arrayUnique(array) {
}
export function flatten(array) {
return array.reduce((flattened, elm) => flattened.concat(elm), []);
return [].concat.apply([], array)
}
export function fromObject(object) {