source: node_modules/ramda/src/internal/_assertPromise.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 329 bytes
Line 
1var _isFunction =
2/*#__PURE__*/
3require("./_isFunction.js");
4
5var _toString =
6/*#__PURE__*/
7require("./_toString.js");
8
9function _assertPromise(name, p) {
10 if (p == null || !_isFunction(p.then)) {
11 throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, []));
12 }
13}
14
15module.exports = _assertPromise;
Note: See TracBrowser for help on using the repository browser.