UNPKG

crocks

Version:

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

12 lines (8 loc) 266 B
/** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ var hasAlg = require('./hasAlg') // isFunctor : a -> Boolean function isFunctor(m) { return !!m && hasAlg('map', m) } module.exports = isFunctor