Update json-patch-duplex.js

exposing the compare method.
Merge pull request #48 from michelle-becker/patch-1

Add compare function to exports