MOBILE-3720 env: Remove usage of Array.flat

main
Noel De Martin 2021-03-09 12:29:32 +01:00
parent 0b07323a81
commit 25e37eb5fd
1 changed files with 0 additions and 4 deletions

View File

@ -37,10 +37,6 @@ export class CoreArray {
* @return Flattened array.
*/
static flatten<T>(arr: T[][]): T[] {
if ('flat' in arr) {
return (arr as any).flat(); // eslint-disable-line @typescript-eslint/no-explicit-any
}
return (<T[]> []).concat(...arr);
}