Something went wrong. Try again.
javascript for 🐜's, a tiny runtime with big ambitions antjs.org
Something went wrong. Try again.
1234567891011121314151617181920const obj = { action() { return 1; }, child: { inner() { return 2; }, }, missing: undefined,};
const out = JSON.stringify(obj, (_key, value) => { if (typeof value === 'function') return `[fn:${value.name || 'anonymous'}]`; if (value === undefined) return '[undef]'; return value;});
console.log(out);