Skip to main content
Module

x/ramda/internal/_assertPromise.js

:ram: Practical functional Javascript
Very Popular
Go to Latest
File
import _isFunction from './_isFunction';import _toString from './_toString';
export default function _assertPromise(name, p) { if (p == null || !_isFunction(p.then)) { throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, [])); }}