Initial commit (from f5274cbdce4ae7c9e4b937dcdf95ac70ae436d5f)
This commit is contained in:
commit
28ccc3db2d
13974 changed files with 2618436 additions and 0 deletions
7
node_modules/fast-json-stable-stringify/example/value_cmp.js
generated
vendored
Normal file
7
node_modules/fast-json-stable-stringify/example/value_cmp.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue