Internal type checking library for SPA packages used by Thorgate project template SPA variant
isRouteSagaObject(obj)
isIterable(obj)
isIterator(obj)
isPromise(obj)
isNode()
- true if running on node, false if running in browser
import { isNode } from '@thorgate/spa-is';
let history;
if (isNode()) {
history = createMemoryHistory();
} else {
history = createBrowserHistory();
}