|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
367 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | const {toString} = Object.prototype;
|
|---|
| 3 |
|
|---|
| 4 | module.exports = value => {
|
|---|
| 5 | if (typeof value !== 'function') {
|
|---|
| 6 | return false;
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | return (value.constructor && value.constructor.name === 'GeneratorFunction') ||
|
|---|
| 10 | toString.call(value) === '[object GeneratorFunction]';
|
|---|
| 11 | };
|
|---|
| 12 |
|
|---|
| 13 | // TODO: Remove this for the next major release
|
|---|
| 14 | module.exports.default = module.exports;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.