JSON-Patch
JSON-Patch copied to clipboard
Inaccurate documentation
jsonpatch.compare(document1: any, document2: any, invertible = false): Operation[]
compare doesn't accept any type. It accepts only objects from what I can see. Definitely doesn't accept null or undefined
Correct you are. It should accept null as it is a valid result from parsing JSON or as JSON stringify input.