• Remove all elements from an Array that match a Predicate.

    Mutation

    Example

    Remove all even numbers

    const array = [1, 2, 3];

    deleteIf(isEven)(array);

    console.log(array); // [1, 3]

    Type Parameters

    • T

      the Array element type

    Parameters

    Returns ((array: T[]) => void)

      • (array: T[]): void
      • Parameters

        • array: T[]

        Returns void

Generated using TypeDoc