Options
All
  • Public
  • Public/Protected
  • All
Menu

Module string/startsWithIgnoreCase

Index

References

Functions

References

Renames and re-exports startsWithIgnoreCase

Functions

  • startsWithIgnoreCase(prefix: string, str: string): boolean
  • startsWithIgnoreCase(prefix: string): (str: string) => boolean
  • Checks if a string starts with the provided candidate ignore case

    example
     startsWithIgnoreCase('a', 'abc');                //=> true
    startsWithIgnoreCase('A', 'abc'); //=> true
    startsWithIgnoreCase('ab', 'ABC'); //=> true
    startsWithIgnoreCase('b', 'abc'); //=> false

    Parameters

    • prefix: string
    • str: string

    Returns boolean

  • Checks if a string starts with the provided candidate ignore case

    example
     startsWithIgnoreCase('a', 'abc');                //=> true
    startsWithIgnoreCase('A', 'abc'); //=> true
    startsWithIgnoreCase('ab', 'ABC'); //=> true
    startsWithIgnoreCase('b', 'abc'); //=> false

    Parameters

    • prefix: string

    Returns (str: string) => boolean

      • (str: string): boolean
      • Parameters

        • str: string

        Returns boolean

Generated using TypeDoc