added unit testing, and started implementing unit tests...phew
This commit is contained in:
14
node_modules/p-is-promise/index.js
generated
vendored
Normal file
14
node_modules/p-is-promise/index.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
const isPromise = input => (
|
||||
input instanceof Promise ||
|
||||
(
|
||||
input !== null &&
|
||||
typeof input === 'object' &&
|
||||
typeof input.then === 'function' &&
|
||||
typeof input.catch === 'function'
|
||||
)
|
||||
);
|
||||
|
||||
module.exports = isPromise;
|
||||
module.exports.default = isPromise;
|
Reference in New Issue
Block a user