UNPKG

@matatbread/typia

Version:

Superfast runtime validators with only one line

15 lines 448 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MapUtil = void 0; var MapUtil; (function (MapUtil) { MapUtil.take = (dict, key, generator) => { const oldbie = dict.get(key); if (oldbie) return oldbie; const value = generator(); dict.set(key, value); return value; }; })(MapUtil || (exports.MapUtil = MapUtil = {})); //# sourceMappingURL=MapUtil.js.map