tower-oid

Installation

Object ID

node.js:

npm install tower-oid

browser:

component install tower/oid
var oid = require('tower-oid');
var obj = { foo: 'bar' };
oid(obj);
console.log(obj.__id__);
  • http://stackoverflow.com/questions/17934888/how-to-add-non-enumerable-property-in-javascript-for-ie8/17935125#17935125

MIT