crocks
Version:
A collection of well known Algebraic Datatypes for your utter enjoyment.
14 lines (10 loc) • 308 B
JavaScript
/** @license ISC License (c) copyright 2016 original and current authors */
/** @author Ian Hofmann-Hicks (evil) */
var hasAlg = require('./hasAlg')
var isApply = require('./isApply')
// isChain : a -> Boolean
function isChain(m) {
return isApply(m)
&& hasAlg('chain', m)
}
module.exports = isChain