4 lines
253 B
JavaScript
4 lines
253 B
JavaScript
export default function _isFunction(x) {
|
|
var type = Object.prototype.toString.call(x);
|
|
return type === '[object Function]' || type === '[object AsyncFunction]' || type === '[object GeneratorFunction]' || type === '[object AsyncGeneratorFunction]';
|
|
} |