Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inaccurate documentation #291

Open
Piliponful opened this issue Feb 10, 2022 · 1 comment
Open

Inaccurate documentation #291

Piliponful opened this issue Feb 10, 2022 · 1 comment

Comments

@Piliponful
Copy link

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

@Starcounter-Jack
Copy link
Owner

Correct you are. It should accept null as it is a valid result from parsing JSON or as JSON stringify input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants