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
Options can be a comparator function or an object which has two optional properties: `cmp` and `cycles`.
42
+
40
43
### cmp
41
44
42
-
If `opts` is given, you can supply an `opts.cmp` to have a custom comparison
43
-
function for object keys. Your function `opts.cmp` is called with these
44
-
parameters:
45
+
`opts.cmp` is the custom comparator function that user can specify. If custom comparator function is not provided, the JSON string of an object will be sorted by the alphanumeric order of object keys.
46
+
The type of the comparator function is defined as:
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": "quick-stable-stringify",
3
-
"version": "0.0.2",
3
+
"version": "0.0.3",
4
4
"description": "Deterministic `JSON.stringify()` - a faster version of Evgeny's fast-json-stable-strigify. Built with Typescript and modern Javascript.",
0 commit comments