CommonIncludes CallableCommonIncludes<T>(array, searchElement, fromIndex): searchElement is TA Array.includes version annotated to return a type guard.Parametersarray: 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.