aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/function/valid-function.js
blob: 060bd64534d4ce9792aa661d5934499e080feb11 (plain)
1
2
3
4
5
6
7
8
"use strict";

var isFunction = require("./is-function");

module.exports = function (value) {
	if (!isFunction(value)) throw new TypeError(value + " is not a function");
	return value;
};