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.
15 lines • 533 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.mapRemoveOneFromArray = void 0;
const array_remove_one_js_1 = require("../../array/impl/array-remove-one.js");
function mapRemoveOneFromArray(map, key, value) {
const values = map.get(key);
if (values == null) {
return false;
}
else {
return (0, array_remove_one_js_1.arrayRemoveOne)(values, value);
}
}
exports.mapRemoveOneFromArray = mapRemoveOneFromArray;
//# sourceMappingURL=map-remove-one-from-array.js.map