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

    Function addAll

    • Returns the array that adds all 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 adds all the given elements

      David Hsing

      addAll(undefined, ['bar']);    // ['bar']
      addAll(['foo', 'bar'], undefined); // ['foo', 'bar']
      addAll(['foo', 'bar'], ['world']); // ['foo', 'bar', 'world']