Skip to main content
Lightweight utility functions for assertions, type guards, and async helpers used throughout CosmJS.

Assertions

These helpers use TypeScript assertion signatures, so the compiler narrows the type of the argument in the enclosing scope after a successful call.

Type Guards

Async Helpers

Array Utilities

Elements are compared with strict equality, so these helpers only support arrays of primitives (string/number/boolean).