@hoge1e3/object-id
v1.0.0
Published
Assign an unique id to an object
Downloads
72
Readme
object-id
Assign an unique id to an object
Usage
import {get} from "@hoge1e3/object-id";
import * as assert from "assert";
const aid=get(a);
const bid=get(b);
const cid=get(c);
assert.ok(aid!==bid && bid!==cid && cid!==aid);
assert.strictEqual(aid, _get(a));
assert.strictEqual(bid, _get(b));
assert.strictEqual(cid, _get(c));
console.log(aid,bid,cid);