Spaces:
Runtime error
Runtime error
| /** | |
| * Check if `fn` is a function. | |
| * | |
| * @param {Function} fn | |
| * @return {Boolean} | |
| * @api private | |
| */ | |
| var isObject = require('./is-object'); | |
| function isFunction(fn) { | |
| var tag = isObject(fn) ? Object.prototype.toString.call(fn) : ''; | |
| return tag === '[object Function]'; | |
| } | |
| module.exports = isFunction; | |