<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Proxy on Commentary of Takao</title><link>https://takao.blog/en/tags/proxy/</link><description>Recent content in Proxy on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sat, 13 Jun 2026 23:11:50 +0900</lastBuildDate><atom:link href="https://takao.blog/en/tags/proxy/index.xml" rel="self" type="application/rss+xml"/><item><title>JavaScript Proxy and Reflect API: Metaprogramming Patterns</title><link>https://takao.blog/en/web/js-proxy-reflect/</link><pubDate>Tue, 04 Jun 2024 00:00:00 +0900</pubDate><guid>https://takao.blog/en/web/js-proxy-reflect/</guid><description>&lt;img src="https://takao.blog/img/thumnail.webp" alt="Featured image of post JavaScript Proxy and Reflect API: Metaprogramming Patterns" /&gt;&lt;p&gt;JavaScript&amp;rsquo;s &lt;code&gt;Proxy&lt;/code&gt; and &lt;code&gt;Reflect&lt;/code&gt; APIs are among the most powerful metaprogramming tools available in the language. They allow developers to intercept and customize fundamental operations on objects — property access, assignment, enumeration, function invocation, and even constructor calls. This article explores all 13 proxy traps, the complementary &lt;code&gt;Reflect&lt;/code&gt; API, and real-world patterns used in production frameworks like Vue 3, MobX, and Immer.&lt;/p&gt;
&lt;h2 id="understanding-the-proxy-pattern"&gt;Understanding the Proxy Pattern
&lt;/h2&gt;&lt;p&gt;A &lt;code&gt;Proxy&lt;/code&gt; wraps a target object and intercepts operations via handler functions called traps:&lt;/p&gt;</description></item></channel></rss>