Options
All
  • Public
  • Public/Protected
  • All
Menu

Module pullAll

Index

References

Functions Array

References

Renames and re-exports __type

Array Functions

  • pullAll<T>(array: T[], values: T[]): T[]
  • This method is like pull except that it accepts an array of values to remove.

    Note: Unlike difference, this method mutates array.

    since

    5.11.0

    see

    pull, pullAllBy, pullAllWith, pullAt, remove, reject

    example
    const array = ['a', 'b', 'c', 'a', 'b', 'c']

    pullAll(array, ['a', 'c'])
    console.log(array)
    // => ['b', 'b']

    Type parameters

    • T

    Parameters

    • array: T[]

      The array to modify.

    • values: T[]

      The values to remove.

    Returns T[]

    Returns array.