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

    Function unquote

    • Returns a string that unquotes the given text

      Parameters

      • Optionaltext: null | string

        the text to inspect

      Returns undefined | null | string

      a string that unquotes the given text

      David Hsing

      unquote(undefined);    // undefined
      unquote('\'foobar\''); // 'foobar'
      unquote('"foobar"'); // 'foobar'