method Collection.prototype.sweepimport { Collection } from "https://deno.land/x/revoltio@v1.0.0/src/util/mod.ts"; sweep(fn: (value: V,key: K,collection: this,) => boolean): numberRemoves items that satisfy the provided filter function. sweep<T>(fn: (this: T,value: V,key: K,collection: this,) => boolean, thisArg: T): numberRemoves items that satisfy the provided filter function. Parametersfn: (value: V,key: K,collection: this,) => booleanFunction used to test (should return a boolean) ReturnsnumberThe number of removed entries Type ParametersTParametersfn: (this: T,value: V,key: K,collection: this,) => booleanthisArg: TReturnsnumber