Function removeStartIgnoreCase

  • Returns the string that removed the leftmost given string, case-insensitive

    Parameters

    • Optionaltext: null | string

      the text to inspect

    • Optionalremove: null | string

      the string to remove, case-insensitive

    Returns string | undefined | null

    the string that removed the leftmost given string, case-insensitive

    removeStartIgnoreCase('foobar', 'Hello');    // 'foobar'
    removeStartIgnoreCase('foobar', 'Foo'); // 'bar'