UNPKG

yhtml5-test

Version:

A test framework for front-end projects

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