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

    Function prependIfMissingIgnoreCase

    • Returns a string that concat the given prefix and text, case-insensitive

      Parameters

      • Optionaltext: null | string

        the text to check

      • Optionalprefix: string

        the prefix to prepend

      Returns undefined | null | string

      a string that concat the given prefix and text, case-insensitive

      David Hsing

      prependIfMissingIgnoreCase('bar', 'foo');    // 'foobar'
      prependIfMissingIgnoreCase('foobar', 'FOO'); // 'foobar'