Sign in
cobalt
/
cobalt
/
9708d320f5c570ac1ada07d0e0136706ac0a5c29
/
.
/
third_party
/
devtools
/
node_modules
/
json-stable-stringify-without-jsonify
/
example
/
value_cmp.js
blob: 09f1c5f79b2167308e0aae89de38d79fcdf52624 [
file
] [
log
] [
blame
]
var
stringify
=
require
(
'../'
);
var
obj
=
{
d
:
6
,
c
:
5
,
b
:
[{
z
:
3
,
y
:
2
,
x
:
1
},
9
],
a
:
10
};
var
s
=
stringify
(
obj
,
function
(
a
,
b
)
{
return
a
.
value
<
b
.
value
?
1
:
-
1
;
});
console
.
log
(
s
);