MCPcopy
hub / github.com/webpack/sass-loader / stringifyValue

Function stringifyValue

test/validate-options.test.js:63–72  ·  view source on GitHub ↗

* @param {EXPECTED_ANY} value value * @returns {string} stringified value

(value)

Source from the content-addressed store, hash-verified

61 * @returns {string} stringified value
62 */
63 function stringifyValue(value) {
64 if (
65 Array.isArray(value) ||
66 (value && typeof value === "object" && value.constructor === Object)
67 ) {
68 return JSON.stringify(value);
69 }
70
71 return value;
72 }
73
74 /**
75 * @param {string} key key

Callers 1

createTestCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…