main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
269 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | function _isFunction(x) {
|
---|
| 2 | var type = Object.prototype.toString.call(x);
|
---|
| 3 | return type === '[object Function]' || type === '[object AsyncFunction]' || type === '[object GeneratorFunction]' || type === '[object AsyncGeneratorFunction]';
|
---|
| 4 | }
|
---|
| 5 |
|
---|
| 6 | module.exports = _isFunction; |
---|
Note:
See
TracBrowser
for help on using the repository browser.