@dmail/action
Advanced tools
Comparing version 2.3.1 to 2.4.0
@@ -13,2 +13,6 @@ "use strict"; | ||
var isThenable = exports.isThenable = function isThenable(value) { | ||
if (value === null) { | ||
return false; | ||
} | ||
if (_typeof(value) === "object" || typeof value === "function") { | ||
@@ -15,0 +19,0 @@ return typeof value.then === "function"; |
{ | ||
"name": "@dmail/action", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -8,2 +8,5 @@ // more or less equivalent to | ||
export const isThenable = (value) => { | ||
if (value === null) { | ||
return false | ||
} | ||
if (typeof value === "object" || typeof value === "function") { | ||
@@ -10,0 +13,0 @@ return typeof value.then === "function" |
Sorry, the diff of this file is not supported yet
242987
3888