NeDB, na razie bez ostatniego ćwiczenia
This commit is contained in:
1 parent
a1f73fe0c1
commit
8fc98ebf9d
1516 files changed
+255410
No files matched your search
+6
@@ -0,0 +1,6 @@
|
||||
module.exports = isPromise;
|
||||
module.exports.default = isPromise;
|
||||
|
||||
function isPromise(obj) {
|
||||
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
|
||||
}
|
||||
Reference in new issue
Block a user