☰
Debian Codegraph
@
3.1.1+~cs11.23.43-1
/
/
deferred
/
is-promise.js
☽
☼
deferred/is-promise.js
code
plain
raw
ISC
2012-2022, Mariusz Nowak <
[email protected]
>
debian/copyright
1
// Whether given object is a promise
2
3
"use strict";
4
5
module.exports = function (value) {
6
return (
7
typeof value === "function" && typeof value.then === "function" && value.end !== value.done
8
);
9
};