//#region src/Map/has.d.ts /** * # has * * ```ts * function Map.has( * target: ReadonlyMap, * key: NoInfer, * ): boolean * ``` * * Checks whether the map contains the specified key. * * ## Example * * ```ts [data-first] * import { Map } from "@monstermann/map"; * * Map.has( * new Map([ * ["a", 1], * ["b", 2], * ]), * "a", * ); // true * * Map.has( * new Map([ * ["a", 1], * ["b", 2], * ]), * "c", * ); // false * ``` * * ```ts [data-last] * import { Map } from "@monstermann/map"; * * pipe( * new Map([ * ["a", 1], * ["b", 2], * ]), * Map.has("a"), * ); // true * * pipe( * new Map([ * ["a", 1], * ["b", 2], * ]), * Map.has("c"), * ); // false * ``` * */ declare const has: { (key: NoInfer): (target: ReadonlyMap) => boolean; (target: ReadonlyMap, key: NoInfer): boolean; }; //#endregion export { has };