Sha256: 8bfb1825ceaa31e04eb55d48796bd1ebb599d61921f9ed632238482258c2ade3

Contents?: true

Size: 177 Bytes

Versions: 302

Compression:

Stored size: 177 Bytes

Contents

var stringify = require('../');

var obj = { c: 8, b: [{z:6,y:5,x:4},7], a: 3 };
var s = stringify(obj, function (a, b) {
    return a.key < b.key ? 1 : -1;
});
console.log(s);

Version data entries

302 entries across 167 versions & 25 rubygems

Version Path
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/json-stable-stringify/example/key_cmp.js
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/json-stable-stringify/example/key_cmp.js