@wopjs/cast - v0.1.12
    Preparing search index...

    Function inertFilter

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T
      • U

      Parameters

      • arr: T[]
      • predicate: (value: T, index: number, arr: T[]) => value is U

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns U[]

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T
      • U

      Parameters

      • arr: T[] | undefined
      • predicate: (value: T, index: number, arr: T[]) => value is U

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns U[] | undefined

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T
      • U

      Parameters

      • arr: readonly T[]
      • predicate: (value: T, index: number, arr: readonly T[]) => value is U

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns readonly U[]

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T
      • U

      Parameters

      • arr: readonly T[] | undefined
      • predicate: (value: T, index: number, arr: readonly T[]) => value is U

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns readonly U[] | undefined

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T

      Parameters

      • arr: T[]
      • predicate: (value: T, index: number, arr: T[]) => boolean

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns T[]

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T

      Parameters

      • arr: T[] | undefined
      • predicate: (value: T, index: number, arr: T[]) => boolean

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns T[] | undefined

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T

      Parameters

      • arr: readonly T[]
      • predicate: (value: T, index: number, arr: readonly T[]) => boolean

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns readonly T[]

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.

    • Lazy filter that avoids creating a new array when possible.

      Type Parameters

      • T

      Parameters

      • arr: readonly T[] | undefined
      • predicate: (value: T, index: number, arr: readonly T[]) => boolean

        Return false to filter out the item, or true to keep it.

      • OptionalthisArg: any

      Returns readonly T[] | undefined

      the original array if predicate returns true for all items, otherwise a new array with the filtered items.