Function removeIncludesIgnoreCase

  • Returns the array that excludes the elements which includes any of the given exclusions, case-insensitive

    Parameters

    • Optionaltexts: null | string[]

      the arrays to inspect

    • Optionalexcludes: null | string[]

      the elements array to exclude

    Returns string[] | undefined | null

    the array that excludes the elements which includes any of the given exclusions, case-insensitive

    removeIncludesIgnoreCase(['foo', 'bar'], ['AR']);    // ['foo']