sparkletown/sparkle

View on GitHub
src/hooks/useArray.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function useArray has 57 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useArray = <T>(
  array?: T[],
  options?: UseArrayOptions<T>
): UseArrayResult<T> => {
  const create = options?.create ?? createPlainObject;
Severity: Major
Found in src/hooks/useArray.ts - About 2 hrs to fix

There are no issues that match your filters.

Category
Status