UNPKG

@samchon/openapi

Version:

OpenAPI definitions and converters for 'typia' and 'nestia'.

15 lines (14 loc) 421 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 = {}));