• ES Version of lodash.reject The opposite of filter; this method returns the elements of collection that predicate does not return truthy for.

    Type Parameters

    • T

    Parameters

    • arr: T[]

      The array to iterate over.

    • predicate: ((value, index, array) => boolean)

      The function invoked per iteration.

        • (value, index, array): boolean
        • Parameters

          • value: T
          • index: number
          • array: T[]

          Returns boolean

    Returns T[]

    Returns the new filtered array.