This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/@hapi/marker/lib/index.js

20 lines
306 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
'use strict';
const internals = {
symbols: new Map()
};
module.exports = exports = function (subject) {
let symbol = internals.symbols.get(subject);
if (symbol) {
return symbol;
}
symbol = Symbol(subject);
internals.symbols.set(subject, symbol);
return symbol;
};