UNPKG

@quasar/app-vite

Version:

Quasar Framework App CLI with Vite

12 lines (11 loc) 303 B
export function encodeForDiff (obj) { return JSON.stringify(obj, (_, value) => { return typeof value === 'function' ? `/fn(${ value.toString() })` : ( Object.prototype.toString.call(value) === '[object RegExp]' ? value.source : value ) }) }