Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/compareSubstringIgnoreCase

Index

References

Renames and re-exports compareSubstringIgnoreCase

Functions

  • compareSubstringIgnoreCase(a: string, b: string, aStart?: number, aEnd?: number, bStart?: number, bEnd?: number): number
  • Compare two strings ignore case with start and end limited

    example
     compareSubstring('aBCd', 'AbcDE', 1, 3, 0, 2);  //=> 1
    compareSubstring('aBCd', 'AbcDE', 1, 3, 1, 3); //=> 0
    compareSubstring('aBCd', 'AbcDE', 1, 3, 2, 4); //=> -1

    Parameters

    • a: string
    • b: string
    • aStart: number = 0
    • aEnd: number = a.length
    • bStart: number = 0
    • bEnd: number = b.length

    Returns number

Generated using TypeDoc