Blame view

node_modules/es5-ext/function/valid-function.js 189 Bytes
aaac7fed   liuqimichale   add
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;
  };