UNPKG

@monstermann/fn

Version:

A utility library for TypeScript.

24 lines 482 B
//#region src/map/isMap.d.ts /** * `isMap(target)` * * Checks if `target` is a Map instance. * * ```ts * isMap(new Map()); // true * isMap({}); // false * isMap([]); // false * ``` * * ```ts * pipe(new Map(), isMap()); // true * pipe({}, isMap()); // false * pipe([], isMap()); // false * ``` */ declare const isMap: { (): (target: unknown) => target is Map<unknown, unknown>; (target: unknown): target is Map<unknown, unknown>; }; //#endregion export { isMap };