@yookue/ts-lang-utils
    Preparing search index...

    Function removeStart

    • Returns the string that removed the leftmost given string

      Parameters

      • Optionaltext: null | string

        the text to inspect

      • Optionalremove: null | string

        the string to remove

      Returns undefined | null | string

      the string that removed the leftmost given string

      David Hsing

      removeStart('foobar', 'hello');    // 'foobar'
      removeStart('foobar', 'foo'); // 'bar'