Skip to content

Commit 096993e

Browse files
awellesdonmccurdy
authored andcommitted
Teach utils that async functions are still functions
1 parent 743a16b commit 096993e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dat/utils/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const Common = {
149149
},
150150

151151
isFunction: function(obj) {
152-
return Object.prototype.toString.call(obj) === '[object Function]';
152+
return obj instanceof Function;
153153
}
154154

155155
};

0 commit comments

Comments
 (0)