FunctionsCommonIncludesCommonIncludes CallableCommonIncludes<T>(array: readonly T[], searchElement: unknown, fromIndex?: number): searchElement is TA Array.includes version annotated to return a type guard.Type parametersTParametersarray: readonly T[]The array in questionsearchElement: unknownThe value to search foroptionalfromIndex: numberZero-based index at which to start searchingReturns searchElement is TWhether the array contains the passed element
A Array.includes version annotated to return a type guard.