-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
enhancementNew feature or requestNew feature or request
Description
When using util.inspect(myObject))
circular references are named like ref 1
, ref 2
etc...
Would be great to have an option for named circular references, something like this:
const stringify = configure({namedCircularReferences: true});
const circular = {a: 1};
circular.circular = circular;
stringify(circular);
// {__ref: "Ref 1", circular: "Ref 1"
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request