source: node_modules/ramda/es/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: 274 bytes
RevLine 
[d24f17c]1import _isFunction from "./_isFunction.js";
2import _toString from "./_toString.js";
3export default function _assertPromise(name, p) {
4 if (p == null || !_isFunction(p.then)) {
5 throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, []));
6 }
7}
Note: See TracBrowser for help on using the repository browser.