javascript-stringify
Version:
Stringify is to `eval` as `JSON.stringify` is to `JSON.parse`
12 lines (11 loc) • 367 B
TypeScript
import { ToString } from "./types";
export interface Options {
maxDepth?: number;
maxValues?: number;
references?: boolean;
skipUndefinedProperties?: boolean;
}
/**
* Stringify any JavaScript value.
*/
export declare function stringify(value: any, replacer?: ToString | null, indent?: string | number | null, options?: Options): string | undefined;