0.0.2 • Published 4 years ago
object-uuid-polyfill v0.0.2
object-uuid-polyfill
Polyfill to extend Object
with Object.prototype.__id
.
Prerequisites
Node.js > 12
install and usage
$ yarn add object-uuid-polyfill
import "object-uuid-polyfill";
const obj1 = {};
const obj2 = {};
const obj3 = obj2;
console.log(obj1.__id);
console.log(obj2.__id);
console.log(obj3.__id);
development
$ git clone git@github.com:kamataryo/object-uuid-polyfill.git
$ cd object-uuid-polyfill
$ yarn
$ npm test