UNPKG

moy-fp

Version:
13 lines (10 loc) 227 B
import curry from '../Function/curry' import equals from '../Relation/equals' import any from './any' /** * a -> [a] -> Boolean */ const contains = curry( (item, list) => any(equals(item), list) ) export default contains