UNPKG

data-forge

Version:

JavaScript data transformation and analysis toolkit inspired by Pandas and LINQ.

14 lines (13 loc) 1.06 kB
export declare function mapIterable<InT, OutT>(items: Iterable<InT>, mapFn: (item: InT) => OutT): Iterable<OutT>; export declare function makeDistinct<ItemT, KeyT>(items: Iterable<ItemT>, selector?: (item: ItemT) => KeyT): ItemT[]; export declare function toMap<InT, KeyT, ValueT>(items: Iterable<InT>, keySelector: (item: InT) => KeyT, valueSelector: (item: InT) => ValueT): any; export declare function toMap2<InT, KeyT, ValueT>(items: Iterable<InT>, keySelector: (item: InT) => KeyT, valueSelector: (item: InT) => ValueT): Map<KeyT, ValueT>; export declare function determineType(value: any): string; export declare function isObject(v: any): boolean; export declare function isFunction(v: any): v is Function; export declare function isString(v: any): v is string; export declare function isDate(v: any): v is Date; export declare function isBoolean(v: any): v is boolean; export declare function isNumber(v: any): v is number; export declare function isArray(v: any): v is Array<any>; export declare function isUndefined(v: any): boolean;