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

    Function removeAll

    • Returns the array that removes the given elements

      Type Parameters

      • E

      Parameters

      • Optionalarray: null | E[]

        the arrays to inspect

      • Optionalelements: null | E[]

        the elements to remove

      Returns undefined | null | E[]

      the array that removes the given elements

      David Hsing

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