Skip to main content

isItem

Callable

  • isItem<T>(list: T[], defaultValue: T): (arg: unknown) => T

  • Private helper to quickly check items in lists


    Type parameters

    • T

    Parameters

    • list: T[]
    • defaultValue: T

    Returns (arg: unknown) => T

      • (arg: unknown): T
      • Parameters

        • arg: unknown

        Returns T