@unikue/ts-lang-utils
    Preparing search index...

    Function removeAll

    • Returns the array that removes the given elements

      Type Parameters

      • E

      Parameters

      • Optionalarray: E[] | null

        The arrays to inspect

      • Optionalelements: E[] | null

        The elements to remove

      Returns E[] | null | undefined

      the array that removes the given elements

      David Hsing

      removeAll(undefined, ['bar']);    // undefined
      removeAll(['foo', 'bar'], undefined); // ['foo', 'bar']
      removeAll(['foo', 'bar'], ['bar']); // ['foo']