update
This commit is contained in:
parent
d9becc67b6
commit
9308795b8b
964 changed files with 104265 additions and 16 deletions
7
node_modules/ramda/es/internal/_assertPromise.js
generated
vendored
Normal file
7
node_modules/ramda/es/internal/_assertPromise.js
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
import _isFunction from "./_isFunction.js";
|
||||
import _toString from "./_toString.js";
|
||||
export default function _assertPromise(name, p) {
|
||||
if (p == null || !_isFunction(p.then)) {
|
||||
throw new TypeError('`' + name + '` expected a Promise, received ' + _toString(p, []));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue