# Util

> 21 pages have this label.

Source: https://ngwr.dev/labels/util

## See also

- [badgeLog](https://ngwr.dev/reference/utils/badge-log) — Logs a message to the browser console behind a coloured badge.
- [clamp](https://ngwr.dev/reference/utils/clamp) — Clamps a number into an inclusive [min, max] range.
- [debounce](https://ngwr.dev/reference/utils/debounce) — Runs a callback once calls have stopped for waitMs.
- [getFocusableElements](https://ngwr.dev/reference/utils/get-focusable-elements) — Lists the focusable descendants of an element, in DOM order.
- [getRootFontSize](https://ngwr.dev/reference/utils/get-root-font-size) — Reads the root font size in pixels, for converting rem to px.
- [hasModifier](https://ngwr.dev/reference/utils/has-modifier) — True when Ctrl, Cmd, Alt, Shift or Meta is held during a KeyboardEvent.
- [isComposing](https://ngwr.dev/reference/utils/is-composing) — True while an input method (IME) is composing, so the key belongs to it and not to your handler.
- [isDefined](https://ngwr.dev/reference/utils/is-defined) — Type guard that drops null and undefined, for use with Array.filter.
