2
0

is-function.js 200 B

123456789
  1. 'use strict';
  2. var toString = Object.prototype.toString
  3. , id = toString.call(require('./noop'));
  4. module.exports = function (f) {
  5. return (typeof f === "function") && (toString.call(f) === id);
  6. };