UNPKG

crocks

Version:

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

15 lines (10 loc) 307 B
/** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ var isFunction = require('../core/isFunction') function run(m) { if(!(m && isFunction(m.run))) { throw new TypeError('run: IO required') } return m.run() } module.exports = run