MCPcopy
hub / github.com/redux-loop/redux-loop / throwInvariant

Function throwInvariant

src/utils.js:7–11  ·  view source on GitHub ↗
(condition, message)

Source from the content-addressed store, hash-verified

5};
6
7export const throwInvariant = (condition, message) => {
8 if (!condition) {
9 throw Error(message);
10 }
11};
12
13export const isPromiseLike = (obj) => {
14 return !!obj && typeof obj === 'object' && typeof obj.then === 'function';

Callers 7

utils.spec.jsFile · 0.90
runFunction · 0.90
actionFunction · 0.90
delayFunction · 0.90
listFunction · 0.90
mapFunction · 0.90
loopFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected