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 456 B
/** * @public * Get the stored value if present, then delete the key. * * @remarks * See {@link (mapDeleteGet: 1)}. */ export declare function mapDeleteGet<TKey, TValue>(map: Map<TKey, TValue>, key: TKey): TValue | undefined; /** * @public * {@inheritDoc (mapDeleteGet: 1)} */ export declare function mapDeleteGet<TKey extends object, TValue>(map: WeakMap<TKey, TValue>, key: TKey): TValue | undefined; //# sourceMappingURL=map-delete-get.d.ts.map