type LastEachIteratee = ( this: T, value: V, key: K, collection: C ) => void | boolean; /** * 通用迭代器,从最后开始迭代 * @param collection Array * @param iteratee 回调 * @param context 上下文 */ declare function lastEach( collection: T[] | null | undefined, iteratee: LastEachIteratee, context?: Ctx ): void; /** * 通用迭代器,从最后开始迭代 * @param collection Set * @param iteratee 回调 * @param context 上下文 */ declare function lastEach( collection: Set | null | undefined, iteratee: LastEachIteratee, Ctx>, context?: Ctx ): void; /** * 通用迭代器,从最后开始迭代 * @param collection Map * @param iteratee 回调 * @param context 上下文 */ declare function lastEach( collection: Map | null | undefined, iteratee: LastEachIteratee, Ctx>, context?: Ctx ): void; /** * 通用迭代器,从最后开始迭代 * @param collection object * @param iteratee 回调 * @param context 上下文 */ declare function lastEach( collection: T | null | undefined, iteratee: LastEachIteratee, T, Ctx>, context?: Ctx ): void; declare module './ctor' { interface XEUtilsMethods { lastEach: typeof lastEach; } } export default lastEach