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.

10 lines 261 B
export function mapInitializeGet(map, key, getValue) { let value = map.get(key); if (value !== undefined) { return value; } value = getValue(key); map.set(key, value); return value; } //# sourceMappingURL=map-intialize-get.js.map