> For the complete documentation index, see [llms.txt](https://lochiwei.gitbook.io/web/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lochiwei.gitbook.io/web/js/val/builtin/proxy/ex.md).

# Proxy examples

[JS](/web/js.md) ⟩ [object](/web/js/val/obj.md) ⟩ [built-in](/web/js/val/builtin.md) ⟩ [Proxy](/web/js/val/builtin/proxy.md) ⟩ examples

{% tabs %}
{% tab title="🔴 主題" %}

* [identity (proxy)](/web/js/val/builtin/proxy/ex/id.md) - returns every key <mark style="color:yellow;">**as is**</mark>, that is <mark style="color:yellow;">`identity[key] === key`</mark>.
* [read-only proxy](/web/js/val/builtin/proxy/ex/readonly.md) - make an object <mark style="color:yellow;">**read-only**</mark>.
  {% endtab %}

{% tab title="📗 參考" %}

* [ ] JS.info ⟩ [Proxy and Reflect](https://javascript.info/proxy)
* [ ] [JavaScript: The Definitive Guide](/web/master/ref/javascript-the-definitive-guide.md) ⟩&#x20;
  * [ ] 14.6 The Reflect API
  * [ ] 14.7 Proxy Objects
    {% endtab %}

{% tab title="📘 手冊" %}

* [Proxy](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy)
* [Reflect](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect)
  {% endtab %}
  {% endtabs %}
