UNPKG

@perk.money/perk-swap-core

Version:

This npm package contains core logic of Perk Aggregator build on top of NEAR blockchain

6 lines (5 loc) 331 B
declare const splitBy: <T>(list: T[], chunkSize: number) => T[][]; declare const toMap: <T, K>(list: T[], keyFn: (el: T) => K) => Map<K, T>; declare const uniqBy: <T, K>(list: T[], keyFn: (el: T) => K) => T[]; declare function notEmpty<T>(value: T | null | undefined): value is T; export { splitBy, toMap, uniqBy, notEmpty };