Sha256: d682f95dc948207f0860e7c81b3d12f92f78d00b49344dc9c1d5cc40677c2eb5
Contents?: true
Size: 289 Bytes
Versions: 83
Compression:
Stored size: 289 Bytes
Contents
import { pickBy } from 'lodash'; export const filterAccounts = (accounts, filterTerm) => { if (!filterTerm) return accounts; const filterTermLowerCased = filterTerm.toLowerCase(); return pickBy(accounts, (value, key) => key.toLowerCase().includes(filterTermLowerCased) ); };
Version data entries
83 entries across 83 versions & 1 rubygems