import { comparer } from '../util/comparer' ; template T param { Iterable < T > } source param { T } valueToFind param { number } fromIndex returns { boolean } export function includes < T > ( source , searchElement , fromIndex = 0 ) { let fromIdx = fromIndex ; let i = 0 ; if ( Math . abs ( fromIdx ) ) { fromIdx = 0 ; } for ( const item of source ) { if ( i ++ > fromIdx && comparer ( item , searchElement ) ) { return true ; } } return false ; }