1 2 3 4 5 6 7 8
export const utils = { stringifyWithFormatting(obj: any): string { const jsonReplacer: null = null; const numberOfJsonSpaces = 4; const stringifiedObj = JSON.stringify(obj, jsonReplacer, numberOfJsonSpaces); return stringifiedObj; }, };