export type GlobalSweepFilter<Key, Value> = () => | ((value: Value, key: Key, collection: Collection<Key, Value>) => boolean) | null;
Returns: Return null
to skip sweeping, otherwise a function passed to sweep()
, See for the definition of this function.