UNPKG

react-elegant-ui

Version:

Elegant UI components, made by BEM best practices for react

7 lines (6 loc) 262 B
/** * Filtrate object properties * * By default will removed all properties that `Boolean` cast to `false` */ export declare const filterObject: <T extends string = any, Q = any>(obj: Record<T, Q>, predicate?: (value: Q, key: T) => boolean) => Record<T, Q>;