Helpers
Qite ships with a small set of utility helpers used internally across
components,
Ajax, states and events. They live under
src/helpers/
and are framework-agnostic. These helpers are not tied to
BaseComponent, but
you can import and use them directly in your own application code.
Helpers include the following files:
-
cookies.js— simple cookie management -
arrays.js— small array utilities -
objects.js— object filtering and shaping helpers -
types.js— lightweight type guards -
public_promise.js— externally-resolvable promise
Having those helpers helps us avoid needless dependencies and allows us to have them exactly as we want them: handcrafted to Qite's purposes, yet general enough to be used in any code. Hope you'll find them useful.
In the following pages we document selected helpers that you may find to be most useful in application code.