UNPKG

322 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = isFunction;
7
8function isFunction(f) {
9 // eslint-disable-next-line no-var
10 var type = Object.prototype.toString.call(f).toLowerCase();
11 return type.search(/\bobject\b/g) !== -1 && type.search(/\bfunction\b/g) !== -1;
12}
\No newline at end of file