From 29433e2f7dbd0e4a73d3c78ffe1005b922fb5982 Mon Sep 17 00:00:00 2001 From: Alee14 Date: Sun, 26 Mar 2017 15:18:10 -0400 Subject: Don't mind me i'm adding the discord.js files --- node_modules/superagent/lib/is-function.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 node_modules/superagent/lib/is-function.js (limited to 'node_modules/superagent/lib/is-function.js') diff --git a/node_modules/superagent/lib/is-function.js b/node_modules/superagent/lib/is-function.js new file mode 100644 index 0000000..5fb118e --- /dev/null +++ b/node_modules/superagent/lib/is-function.js @@ -0,0 +1,15 @@ +/** + * 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; -- cgit v1.2.3