You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -394,10 +394,35 @@ false;
394
394
395
395
More examples are availble in the tests of the source code.
396
396
397
+
<hr/>
398
+
399
+
### OPTIONS
400
+
401
+
`getObjectDiff()` and `isEqual()` accept a facultative `options` parameter:
402
+
403
+
```ts
404
+
{
405
+
discardArrayOrder?:boolean// false by default
406
+
}
407
+
```
408
+
409
+
If `discardArrayOrder` is set to `true`, `["hello", "world"]` and `["world", "hello"]` will be considered as `equal`, because the two arrays have the same value, just not in the same order.
410
+
397
411
## CREDITS
398
412
399
413
DoneDeal0
400
414
415
+
## SUPPORT
416
+
417
+
If you use Superdiff, please show your support by buying me coffee:
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@donedeal0/superdiff",
3
-
"version": "1.0.4",
3
+
"version": "1.0.5",
4
4
"description": "SuperDiff checks the changes between two objects or arrays. It returns a complete diff with relevant information for each property or piece of data",
0 commit comments