Any data that will be turned into JSON after this function completes.
Optional
filter: deepCloneFilterWhen supplied, it provides an alternative to the default rules for cleaning (which uses cleanForLogging).
When it returns undefined, it means the property containing the value can be removed.
Generated using TypeDoc v0.25.12
Designed to prepare the value for conversion to JSON. Creates a near-deep clone. All new objects, but some properties have changed. It will remove undefined properties. It will convert functions into a string of "[Function]" with the function name if available. It will convert Date objects to their ISO string. It will convert RegExp objects to a string that mimics its expression pattern. It will discard any circular references. It will discard most built-in objects like Map, Set, Error, etc. It will discard class instances.