   1| import {
   2|     CharacterCodes,
   3|     Comparer,
   4|     Comparison,
   5|     Debug,
   6|     EqualityComparer,
   7|     MapLike,
   8|     Queue,
   9|     SortedArray,
  10|     SortedReadonlyArray,
  11|     TextSpan,
  12| } from "./_namespaces/ts.js";
  17| export const emptyArray: never[] = [] as never[];
  19| export const emptyMap: ReadonlyMap<never, never> = new Map<never, never>();
  22| export function length(array: readonly any[] | undefined): number {
  33| export function forEach<T, U>(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined {
  50| export function forEachRight<T, U>(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined {
  67| export function firstDefined<T, U>(array: readonly T[] | undefined, callback: (element: T, index: number) => U | undefined): U | undefined {
  82| export function firstDefinedIterator<T, U>(iter: Iterable<T>, callback: (element: T) => U | undefined): U | undefined {
  93| export function reduceLeftIterator<T, U>(iterator: Iterable<T> | undefined, f: (memo: U, value: T, i: number) => U, initial: U): U {
 106| export function zipWith<T, U, V>(arrayA: readonly T[], arrayB: readonly U[], callback: (a: T, b: U, index: number) => V): V[] {
 121| export function intersperse<T>(input: T[], element: T): T[] {
 140| export function every<T, U extends T>(array: readonly T[], callback: (element: T, index: number) => element is U): array is readonly U[];
 142| export function every<T, U extends T>(array: readonly T[] | undefined, callback: (element: T, index: number) => element is U): array is readonly U[] | undefined;
 144| export function every<T>(array: readonly T[] | undefined, cal

... [truncated 25907 chars] ...

rray: readonly T[], predicate: (element: T) => element is U): U[];
2559| export function takeWhile<T, U extends T>(array: readonly T[] | undefined, predicate: (element: T) => element is U): U[] | undefined;
2560| export function takeWhile<T, U extends T>(array: readonly T[] | undefined, predicate: (element: T) => element is U): U[] | undefined {
2572| export function skipWhile<T, U extends T>(array: readonly T[], predicate: (element: T) => element is U): Exclude<T, U>[];
2574| export function skipWhile<T, U extends T>(array: readonly T[] | undefined, predicate: (element: T) => element is U): Exclude<T, U>[] | undefined;
2576| export function skipWhile<T, U extends T>(array: readonly T[] | undefined, predicate: (element: T) => element is U): Exclude<T, U>[] | undefined {
2588| export function isNodeLikeSystem(): boolean {