is-thenable.js 189 B

12345678
  1. "use strict";
  2. var isCallable = require("./is-callable")
  3. , isObject = require("./is-object");
  4. module.exports = function (value) {
  5. return isObject(value) && isCallable(value.then);
  6. };