HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/apollo-env/src/polyfills/array.ts
/// <reference lib="esnext.array" />
import "core-js/features/array/flat";
import "core-js/features/array/flat-map";

// The built-in Array.flat typings don't contain an overload for ReadonlyArray<U>[],
// which means the return type is inferred to be any[] instead of U[], hence this augmentation.
declare global {
  interface Array<T> {
    /**
     * Returns a new array with all sub-array elements concatenated into it recursively up to the
     * specified depth.
     *
     * @param depth The maximum recursion depth
     */
    flat<U>(this: ReadonlyArray<U>[], depth?: 1): U[];
  }
}