import { equals } from '../util' ; /**
 * Returns true if the received array contains the expected value
 */ export const contains = < T > ( expectedValue ) => ( receivedArray ) : boolean => { return receivedArray . findIndex ( ( item ) => equals ( item , expectedValue ) ) > - 1 ; } ;