UNPKG

@waku/utils

Version:
9 lines 257 B
export function pushOrInitMapSet(map, key, newValue) { let arr = map.get(key); if (typeof arr === "undefined") { map.set(key, new Set()); arr = map.get(key); } arr.add(newValue); } //# sourceMappingURL=push_or_init_map.js.map