12345678910111213141516171819202122232425262728293031323334353637 |
- var baseGetTag = require('./_baseGetTag'),
- isObject = require('./isObject');
- var asyncTag = '[object AsyncFunction]',
- funcTag = '[object Function]',
- genTag = '[object GeneratorFunction]',
- proxyTag = '[object Proxy]';
- function isFunction(value) {
- if (!isObject(value)) {
- return false;
- }
-
-
- var tag = baseGetTag(value);
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
- }
- module.exports = isFunction;
|