
| Current Path : /proc/thread-self/root/usr/share/nodejs/p-is-promise/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //proc/thread-self/root/usr/share/nodejs/p-is-promise/index.js |
'use strict'; const isObject = value => value !== null && (typeof value === 'object' || typeof value === 'function'); module.exports = value => ( value instanceof Promise || ( isObject(value) && typeof value.then === 'function' && typeof value.catch === 'function' ) );