Open Piliponful opened 2 years ago
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
any
Correct you are. It should accept null as it is a valid result from parsing JSON or as JSON stringify input.
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