UNPKG

d2-ui

Version:
9 lines (6 loc) 173 B
'use strict'; var isFunction = require('./is-function'); module.exports = function (x) { if (!isFunction(x)) throw new TypeError(x + " is not a function"); return x; };