MCPcopy Index your code
hub / github.com/codecombat/codecombat / objectHash

Function objectHash

app/core/deltas.js:139–139  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

137}
138
139const objectHash = function (obj) { if (obj != null) { return (obj.name || obj.id || obj._id || JSON.stringify(_.keys(obj).sort())) } else { return 'null' } }
140
141module.exports.makeJSONDiffer = () => jsondiffpatch.create({ objectHash })
142

Callers 1

expandFlattenedDeltaFunction · 0.85

Calls 1

stringifyMethod · 0.45

Tested by

no test coverage detected