rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
14 lines • 404 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapConcat = void 0;
function mapConcat(map, key, valuesToConcat) {
const values = map.get(key);
if (values != null) {
map.set(key, values.concat(valuesToConcat));
}
else {
map.set(key, valuesToConcat.slice());
}
}
exports.mapConcat = mapConcat;
//# sourceMappingURL=map-concat.js.map