jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

README - show .create with default options - jsondiffpatch.create({})

Open floer32 opened this issue 3 years ago • 0 comments

If you do jsondiffpatch.create() (with no options argument), you get a confusing error: TypeError: Cannot read property 'processor' of undefined. This doesn't indicate the problem that create expects an empty options object, {}. Instead of adding handling or an error, for that case, I think the README is a fine solution.

README should mention this. jsondiffpatch does have sane defaults already, except for this one pesky case.

Resolves #266

floer32 avatar Mar 29 '21 07:03 floer32