FunctionsisItemisItem CallableisItem<T>(list: T[], defaultValue: T): (arg: unknown) => TPrivate helper to quickly check items in listsType parametersTParameterslist: T[]defaultValue: TReturns (arg: unknown) => T(arg: unknown): TParametersarg: unknownReturns T
Private helper to quickly check items in lists