chore: simpler
This commit is contained in:
parent
ffa5e65835
commit
d9da7de6d0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user