import { IMap, INumberMap } from "./interfaces"; import { forIn } from "@vlr/object-tools"; export function keys(map: IMap): string[] { const result: string[] = []; forIn(map, (value, key) => result.push(key)); return result; } export function nkeys(map: INumberMap): number[] { const result: number[] = []; forIn(map, (value, key) => result.push(+key)); return result; }