src/hooks/forEach.ts
Function forEach
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const forEach = <H extends HookContext = HookContext, T = any, R = any>(
actionPerItem: ActionPerItem<T, H, R>,
options?: HookForEachOptions<T, H, R>,
): ReturnAsyncHook<H> => {
const { wait = "parallel", items: from = "automatic" } = options || {};