UNPKG

@ecreeth/rn-ui

Version:

Highly customizable and theming components for React Native

13 lines (11 loc) 264 B
const pickBy = (object, predicate) => { const result = Object.assign( {}, ...Object .keys(object || {}) .filter(key => predicate(object[key], key)) .map(key => ({ [key]: object[key] })), ); return result; }; export default pickBy;