import { IMap, INumberMap } from "./interfaces"; export function has(map: IMap, key: string): boolean; export function has(map: INumberMap, key: number): boolean; export function has(map: IMap, key: string | number): boolean { return map.hasOwnProperty ? map.hasOwnProperty(key) : map[key] !== undefined; }