Skip to content

Commit 0d8f2eb

Browse files
committed
Add import to the README.md example
1 parent 15b2eb0 commit 0d8f2eb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ Or [download as ZIP](https://github.com/Palindrom/JSON-Patch-OT/archive/master.z
3333
## Usage
3434

3535
```javascript
36-
var transformedPatch = JSONPatchOT.transform( givenPatch, againstAnotherPatch);
36+
import JSONPatchOT from 'json-patch-ot';
37+
38+
var transformedPatch = JSONPatchOT.transform(givenPatch, againstAnotherPatch);
3739
// or
38-
var transformedPatch = JSONPatchOT.transform( givenPatch, againstArrayOfPatches);
40+
var transformedPatch = JSONPatchOT.transform(givenPatch, againstArrayOfPatches);
3941
```
4042

4143
## Contributing

0 commit comments

Comments
 (0)