26 lines
546 B
JavaScript
26 lines
546 B
JavaScript
// Module ID: 204
|
|
// Function ID: 205
|
|
// Name: map
|
|
// Dependencies: []
|
|
|
|
// Module 204 (map)
|
|
const map = new Map();
|
|
arg5.register = (arg0) => {
|
|
const value = map.get(arg0);
|
|
if (null != value) {
|
|
const result = obj.set(arg0, value + 1);
|
|
} else {
|
|
const result1 = obj.set(arg0, 1);
|
|
}
|
|
};
|
|
arg5.unregister = (arg0) => {
|
|
const value = map.get(arg0);
|
|
if (null != value) {
|
|
if (value <= 1) {
|
|
obj.delete(arg0);
|
|
} else {
|
|
const result = obj.set(arg0, value - 1);
|
|
}
|
|
}
|
|
};
|
|
arg5.has = (arg0) => map.get(arg0) || false;
|