In the final sentence of the "Timestamps" section, this expanation is offered re potential issues with using toJSON for comparing values that may be complex:
"This is not guaranteed to work for deeply nested objects, as toJSON may serialize objects."
As "toJSON" WILL serialize objects (exclusive of an error), I think the intention was "may serialize objects in an undefined order"?
In the final sentence of the "Timestamps" section, this expanation is offered re potential issues with using toJSON for comparing values that may be complex: "This is not guaranteed to work for deeply nested objects, as toJSON may serialize objects." As "toJSON" WILL serialize objects (exclusive of an error), I think the intention was "may serialize objects in an undefined order"?