# Proxy examples

[JS](https://lochiwei.gitbook.io/web/js) ⟩ [object](https://lochiwei.gitbook.io/web/js/val/obj) ⟩ [built-in](https://lochiwei.gitbook.io/web/js/val/builtin) ⟩ [Proxy](https://lochiwei.gitbook.io/web/js/val/builtin/proxy) ⟩ examples

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

* [id](https://lochiwei.gitbook.io/web/js/val/builtin/proxy/ex/id "mention") - returns every key <mark style="color:yellow;">**as is**</mark>, that is <mark style="color:yellow;">`identity[key] === key`</mark>.
* [readonly](https://lochiwei.gitbook.io/web/js/val/builtin/proxy/ex/readonly "mention") - 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](https://lochiwei.gitbook.io/web/master/ref/javascript-the-definitive-guide "mention") ⟩&#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 %}
