File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 26
26
"dependencies" : {
27
27
"inherits" : " 2.0.3" ,
28
28
"is-arguments" : " ^1.0.4" ,
29
+ "is-generator-function" : " ^1.0.7" ,
29
30
"object.entries" : " ^1.1.0"
30
31
},
31
32
"license" : " MIT" ,
Original file line number Diff line number Diff line change 4
4
'use strict' ;
5
5
6
6
var isArgumentsObject = require ( 'is-arguments' ) ;
7
+ var isGeneratorFunction = require ( 'is-generator-function' ) ;
7
8
8
9
function uncurryThis ( f ) {
9
10
return f . call . bind ( f ) ;
@@ -56,6 +57,8 @@ function isArgumentsObject(value) {
56
57
}
57
58
exports . isArgumentsObject = isArgumentsObject ;
58
59
60
+ exports . isGeneratorFunction = isGeneratorFunction ;
61
+
59
62
function isArrayBufferView ( value ) {
60
63
return ArrayBufferSupported && ArrayBuffer . isView ( value ) ;
61
64
}
@@ -214,11 +217,6 @@ function isAsyncFunction(value) {
214
217
}
215
218
exports . isAsyncFunction = isAsyncFunction ;
216
219
217
- function isGeneratorFunction ( value ) {
218
- return ObjectToString ( value ) === '[object GeneratorFunction]' ;
219
- }
220
- exports . isGeneratorFunction = isGeneratorFunction ;
221
-
222
220
function isMapIterator ( value ) {
223
221
return ObjectToString ( value ) === '[object Map Iterator]' ;
224
222
}
You can’t perform that action at this time.
0 commit comments