# console

Locked, prototype-pollution-resistant copies of the global `console` methods, pre-bound to the original console object.

[`log`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-log), [`warn`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-warn), [`error`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-error), [`info`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-info), [`debug`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-debug), [`trace`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-trace), [`dir`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-dir), [`table`](https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/#api-table), `assert`, `group*`, `time*`, and the rest of the `console` surface are captured (and `.bind()`-ed) at module-load time and frozen into a tamper-proof namespace, so diagnostic output keeps reaching the real console even if `globalThis.console` is later patched. Effective only when imported before any untrusted code has had a chance to mutate the prototype chain.

---

Canonical page: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console/
This file: https://www.hyperfrontend.dev/docs/libraries/utils/immutable-api/built-in-copy/console.md
Documentation index: https://www.hyperfrontend.dev/llms.txt
