UNPKG

@tangential/core

Version:

Core types and support code for Tangential

17 lines (16 loc) 708 B
import { ObjMap } from './obj-map'; export declare class ObjMapUtil { static fromKeyedEntityArray<V>(values: V[], keyField?: string): ObjMap<V>; static toArray<V>(map: ObjMap<V>): V[]; static toKeyedEntityArray<V>(map: ObjMap<V>, keyField?: string): V[]; static toTruthMap<V>(map: ObjMap<V>): ObjMap<boolean>; static addAll<V>(map: ObjMap<V>, mapB: ObjMap<V>, noOverwrite?: boolean): ObjMap<V>; static removeAll<V>(map: ObjMap<V>, mapB: ObjMap<V>): void; /** * Remove the child fields from the provided map. * @param map * @param fields {string[]} * @returns {ObjMap<V>} */ static deleteValueFields<V>(map: ObjMap<V>, fields?: string[]): ObjMap<V>; }