UNPKG

crocks

Version:

A collection of well known Algebraic Datatypes for your utter enjoyment.

16 lines (11 loc) 423 B
/** @license ISC License (c) copyright 2017 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ var curry = require('../core/curry') var isFunction = require('../core/isFunction') function compareWith(x, y, m) { if(!(m && isFunction(m.compareWith))) { throw new TypeError('compareWith: Equiv required for third argument') } return m.compareWith(x, y) } module.exports = curry(compareWith)