Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(id, opts = {}) {
super();
ow(id, ow.any(ow.string, ow.symbol));
if (hasOwnProp.call(cache, id) && !opts.ignoreCache) {
return cache[id];
}
this._id = id;
if (!opts.ignoreCache) {
cache[id] = this;
}
}
}