action-debian-package/node_modules/ramda/src/internal/_assertPromise.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

15 lines
323 B
JavaScript

var _isFunction =
/*#__PURE__*/
require("./_isFunction");
var _toString =
/*#__PURE__*/
require("./_toString");
function _assertPromise(name, p) {
if (p == null || !_isFunction(p.then)) {
throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, []));
}
}
module.exports = _assertPromise;