is-thenable.js 188 B

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