MOBILE-3720 env: Remove usage of Array.flat
parent
0b07323a81
commit
25e37eb5fd
|
@ -37,10 +37,6 @@ export class CoreArray {
|
||||||
* @return Flattened array.
|
* @return Flattened array.
|
||||||
*/
|
*/
|
||||||
static flatten<T>(arr: T[][]): T[] {
|
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);
|
return (<T[]> []).concat(...arr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue