dist/cache/UserCache.js
/**
     * Filter for users by providing a filter function which returns true upon success and false otherwise
     * @param fn filter function to use for the filtering
     * @param ids Array of user ids, if omitted the global user index will be used
     */
Filter for users by providing a filter function which returns true upon success and false otherwise
@param fn filter function to use for the filtering
@param ids Array of user ids, if omitted the global user index will be used
Filter for users by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param ids Array of user ids if omitted the global user index will be used
async filter(fn, ids = undefined) {
        var _a;
        const users = await ((_a = this.storageEngine) === null || _a === void 0 ? void 0 : _a.filter(fn, ids, this.namespace));
        if (!users)
            return [];
        return users.map(u => new UserCache(this.storageEngine, this.rain, u));
    }
async filter ( fn , ids = undefined ) { var _a ; const users = await ( ( _a = this . storageEngine ) === null || _a === void 0 ? void 0 : _a . filter ( fn , ids , this . namespace ) ) ; if ( ! users ) return [ ] ; return users . map ( u => new UserCache ( this . storageEngine , this . rain , u ) ) ; }
Filter for users by providing a filter function which returns true upon success and false otherwise
 @param fn filter function to use for the filtering
 @param ids Array of user ids, if omitted the global user index will be used
Filter for users by providing a filter function which returns true upon success and false otherwise @param fn filter function to use for the filtering @param ids Array of user ids if omitted the global user index will be used