How to use it
The following code shows how to use the HashCode.value()
function.
var object1 = []; var object2 = { f1 : function() { var i; }, a : [1, 2, "#", { m : function() { return 1; } }]}; var object3 = object2; var object4 = function(arg) { arg++ }; var object5 = function(arg) { arg++ }(2); var object6 = (function(arg) { arg++ })(2); HashCode.value(object1); // result: d41d8cd98f00b204e9800998ecf8427e HashCode.value(object2); // result: e72b9ba8d4c160ab0d1b2a828359dde1 HashCode.value(object3); // result: e72b9ba8d4c160ab0d1b2a828359dde1 HashCode.value(object4); // result: 16619c0e50afd2695fc1a22dab652395 HashCode.value(object5); // result: be36fcbc3ab6342a7cbcb2e37d2ae78f HashCode.value(object6); // result: be36fcbc3ab6342a7cbcb2e37d2ae78f