(value, reducers)
| 25 | * @param {Record<string, (value: any) => any>} [reducers] |
| 26 | */ |
| 27 | export 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` |
nothing calls this directly
no test coverage detected
searching dependent graphs…