function toRaw(value, type) {
		if ( typeof value === "string" && !isEnum(type) ) {
			return "\"" + value.replace(/[\u0000-\u001f"\\]/g,
				(c) => replacement[c] || "\\u" + c.charCodeAt(0).toString(16).padStart(4, "0")) + "\"";
		}
		return value;
	}
/**
	 * Converts the given value into its JavaScript source code format.
	 *
	 * Strings will be enclosed in double quotes with special chars being escaped,
	 * all other values will be used 'literally'.
	 * @param {any} value Value to convert
	 * @param {string} type Data type of the value (used to detect enum values)
	 * @returns {string} The source code reprsentation of the value
	 */
Converts the given value into its JavaScript source code format.
Strings will be enclosed in double quotes with special chars being escaped,
all other values will be used 'literally'.
@param {any} value Value to convert
@param {string} type Data type of the value (used to detect enum values)
@returns {string} The source code reprsentation of the value
Converts the given value into its JavaScript source code format . Strings will be enclosed in double quotes with special chars being escaped all other values will be used ' literally ' . @param { any } value Value to convert @param { string } type Data type of the value ( used to detect enum values ) @returns { string } The source code reprsentation of the value
function toRaw(value, type) {
		if ( typeof value === "string" && !isEnum(type) ) {
			return "\"" + value.replace(/[\u0000-\u001f"\\]/g,
				(c) => replacement[c] || "\\u" + c.charCodeAt(0).toString(16).padStart(4, "0")) + "\"";
		}
		return value;
	}
function toRaw ( value , type ) { if ( typeof value === "string" && ! isEnum ( type ) ) { return "\"" + value . replace ( / [\u0000-\u001f"\\] / g , ( c ) => replacement [ c ] || "\\u" + c . charCodeAt ( 0 ) . toString ( 16 ) . padStart ( 4 , "0" ) ) + "\"" ; } return value ; }
Converts the given value into its JavaScript source code format.
Converts the given value into its JavaScript source code format .