following along part 3

This commit is contained in:
Pablo Martin 2025-05-29 19:41:40 +02:00
parent 2e3dfd4114
commit ade19f00bc
602 changed files with 67987 additions and 0 deletions

View file

@ -0,0 +1,3 @@
export default function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}