• Compares 2 arrays, returning an array of values from main array, excluding values from comparisonArray. Tested for numbers and strings.

    Type Parameters

    • T extends {
          toString: (() => string);
      }

    Parameters

    • mainArray: T[]

      Array with all values

    • comparisonArray: T[]

      Array that contains values that will be removed from main array if they exist there

    • ignoreCase: boolean = true

      If array is of type string, determines if comparison should be case sensitive or not. default = true = case insensitive

    Returns T[]

Generated using TypeDoc