UNPKG

json-schema-describes-subset

Version:

Tools for static JSON schema analysis, including functions to determine if one schema describes a subset of another or if a schema describes the empty set or to convert a schema to its disjunctive normal form (DNF).

2 lines (1 loc) 202 B
export declare function groupByAndMap<Type, MapResult>(array: Type[], getKey: (value: Type) => string | number | symbol, map: (value: Type) => MapResult): Record<string | number | symbol, MapResult[]>;