MCPcopy Create free account
hub / github.com/sveltejs/devalue / stringify

Function stringify

src/stringify.js:27–30  ·  view source on GitHub ↗
(value, reducers)

Source from the content-addressed store, hash-verified

25 * @param {Record<string, (value: any) => any>} [reducers]
26 */
27export function stringify(value, reducers) {
28 const stringified = run(false, value, reducers);
29 return typeof stringified === 'string' ? stringified : `[${stringified.join(',')}]`;
30}
31
32/**
33 * Turn a value into a JSON string that can be parsed with `devalue.parse`

Callers

nothing calls this directly

Calls 1

runFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…