is-function.js 273 B

12345678
  1. "use strict";
  2. var objToString = Object.prototype.toString
  3. , isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);
  4. module.exports = function (value) {
  5. return typeof value === "function" && isFunctionStringTag(objToString.call(value));
  6. };