1.0.0-beta.4 • Published 2 years ago
@thorgate/spa-is v1.0.0-beta.4
@thorgate/spa-is
Internal type checking library for SPA packages used by Thorgate project template SPA variant
Available object type checks:
isRouteSagaObject(obj)
isIterable(obj)
isIterator(obj)
isPromise(obj)
Avalable utility checks:
isNode()
- true if running on node, false if running in browser
Usage:
import { isNode } from '@thorgate/spa-is';
let history;
if (isNode()) {
history = createMemoryHistory();
} else {
history = createBrowserHistory();
}
1.0.0-beta.4
2 years ago
1.0.0-beta.0
3 years ago
1.0.0-alpha.39
5 years ago
1.0.0-alpha.30
5 years ago
1.0.0-alpha.28
5 years ago
1.0.0-alpha.14
5 years ago
1.0.0-alpha.6
5 years ago
1.0.0-alpha.5
5 years ago
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
5 years ago
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago