UNPKG

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 345 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mapPush = void 0; function mapPush(map, key, value) { const values = map.get(key); if (values != null) { values.push(value); } else { map.set(key, [value]); } } exports.mapPush = mapPush; //# sourceMappingURL=map-push.js.map