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 2727 "inherits" : " 2.0.3" ,
2828 "is-arguments" : " ^1.0.4" ,
2929 "is-generator-function" : " ^1.0.7" ,
30+ "is-promise" : " ^2.1.0" ,
3031 "object.entries" : " ^1.1.0"
3132 },
3233 "license" : " MIT" ,
Original file line number Diff line number Diff line change 55
66var isArgumentsObject = require ( 'is-arguments' ) ;
77var isGeneratorFunction = require ( 'is-generator-function' ) ;
8+ var isPromise = require ( 'is-promise' ) ;
89
910function uncurryThis ( f ) {
1011 return f . call . bind ( f ) ;
@@ -56,6 +57,8 @@ exports.isArgumentsObject = isArgumentsObject;
5657
5758exports . isGeneratorFunction = isGeneratorFunction ;
5859
60+ exports . isPromise = isPromise ;
61+
5962function isArrayBufferView ( value ) {
6063 return ArrayBufferSupported && ArrayBuffer . isView ( value ) ;
6164}
@@ -169,11 +172,6 @@ function isBigUint64Array(value) {
169172}
170173exports . isBigUint64Array = isBigUint64Array ;
171174
172- function isPromise ( value ) {
173- return ObjectToString ( value ) === '[object Promise]' ;
174- }
175- exports . isPromise = isPromise ;
176-
177175function isMap ( value ) {
178176 return ObjectToString ( value ) === '[object Map]' ;
179177}
You can’t perform that action at this time.
0 commit comments