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

    Function removeEnd

    • 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

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