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 27
27
"inherits" : " 2.0.3" ,
28
28
"is-arguments" : " ^1.0.4" ,
29
29
"is-generator-function" : " ^1.0.7" ,
30
+ "is-promise" : " ^2.1.0" ,
30
31
"object.entries" : " ^1.1.0"
31
32
},
32
33
"license" : " MIT" ,
Original file line number Diff line number Diff line change 5
5
6
6
var isArgumentsObject = require ( 'is-arguments' ) ;
7
7
var isGeneratorFunction = require ( 'is-generator-function' ) ;
8
+ var isPromise = require ( 'is-promise' ) ;
8
9
9
10
function uncurryThis ( f ) {
10
11
return f . call . bind ( f ) ;
@@ -56,6 +57,8 @@ exports.isArgumentsObject = isArgumentsObject;
56
57
57
58
exports . isGeneratorFunction = isGeneratorFunction ;
58
59
60
+ exports . isPromise = isPromise ;
61
+
59
62
function isArrayBufferView ( value ) {
60
63
return ArrayBufferSupported && ArrayBuffer . isView ( value ) ;
61
64
}
@@ -169,11 +172,6 @@ function isBigUint64Array(value) {
169
172
}
170
173
exports . isBigUint64Array = isBigUint64Array ;
171
174
172
- function isPromise ( value ) {
173
- return ObjectToString ( value ) === '[object Promise]' ;
174
- }
175
- exports . isPromise = isPromise ;
176
-
177
175
function isMap ( value ) {
178
176
return ObjectToString ( value ) === '[object Map]' ;
179
177
}
You can’t perform that action at this time.
0 commit comments