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