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

    Function quoteSingle

    • Returns a string that single quotes the given text

      Parameters

      • Optionaltext: null | string

        the text to inspect

      Returns undefined | null | string

      a string that single quotes the given text

      David Hsing

      quoteSingle(undefined);    // undefined
      quoteSingle('foobar'); // '\'foobar\''