fratzinger/feathers-utils

View on GitHub
src/hooks/forEach.ts

Summary

Maintainability
A
1 hr
Test Coverage
A
98%

Function forEach has 32 lines of code (exceeds 25 allowed). Consider refactoring.
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 || {};
Severity: Minor
Found in src/hooks/forEach.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status