You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
even though not a simple single liner, we is a lot of Object/Array comparisons in the provided examples which use the Stringify function, but the default replacer isn't circular reference safe.
the example I made in screenshot is circular reference safe, ( will skip over circular references ).
might be good to include it, but maybe not if we are thinking all of the examples must be single liners.
maybe its just worth mentioning in the single line examples as a comment that isn't circular reference safe, and link to a separe document (that isn't one liners) on how to handle those if they need to.
The text was updated successfully, but these errors were encountered:
I think that it's a special case, which that anyone can use a custom filter method as an argument for JSON.stringify() to find and replace (or remove) the cyclic references by serializable values. Sure it can't be resolved in one line, because then it will depends on that filter method that will not necessary be a single line function.
even though not a simple single liner, we is a lot of Object/Array comparisons in the provided examples which use the Stringify function, but the default replacer isn't circular reference safe.
the example I made in screenshot is circular reference safe, ( will skip over circular references ).
might be good to include it, but maybe not if we are thinking all of the examples must be single liners.
maybe its just worth mentioning in the single line examples as a comment that isn't circular reference safe, and link to a separe document (that isn't one liners) on how to handle those if they need to.
The text was updated successfully, but these errors were encountered: