From 25e37eb5fdd33eeb5d882d948f225402a64c1fcd Mon Sep 17 00:00:00 2001 From: Noel De Martin Date: Tue, 9 Mar 2021 12:29:32 +0100 Subject: [PATCH] MOBILE-3720 env: Remove usage of Array.flat --- src/core/singletons/array.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/core/singletons/array.ts b/src/core/singletons/array.ts index 7f31bafc7..77a1be206 100644 --- a/src/core/singletons/array.ts +++ b/src/core/singletons/array.ts @@ -37,10 +37,6 @@ export class CoreArray { * @return Flattened array. */ static flatten(arr: T[][]): T[] { - if ('flat' in arr) { - return (arr as any).flat(); // eslint-disable-line @typescript-eslint/no-explicit-any - } - return ( []).concat(...arr); }