SDK utilities
The utilities are small helper functions that handle common tasks when you work with the SDK, from reading form values and cookies to merging objects and debouncing input. Each one is lightweight and works alongside the SDKβs components and core APIs.
- classList β Build CSS class name strings from conditions
- debounce β Delay a callback until input stops
- deepmerge β Deeply merge two or more objects
- getCookie β Read a document cookie by name
- getFormErrors β Collect validation errors from a form
- getFormValues β Read form fields into a JavaScript object
- getPathValue β Safely read nested values with dot-path keys