UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

3 lines (2 loc) 139 B
/** Returns whether the payload is a WeakMap */ export declare function isWeakMap(payload: unknown): payload is WeakMap<WeakKey, unknown>;