Function remove

  • A function that takes an array as its first argument and a function as its second argument. The function receives each element of the array as a first argument. If the function returns true, this element is removed from the array.

    Returns

    Removed array elements.

    Type Parameters

    • T

    Parameters

    • array: T[]
    • func: ((v: T, index?: number) => any)
        • (v: T, index?: number): any
        • Parameters

          • v: T
          • Optional index: number

          Returns any

    Returns T[]

Generated using TypeDoc