Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
es6 proxy overview
Search
Joe Wang
April 26, 2018
Programming
74
1
Share
es6 proxy overview
Joe Wang
April 26, 2018
More Decks by Joe Wang
See All by Joe Wang
fastbuild-前端资源打包平台架构与设计及其他
nodew
0
220
An Introduction to Reactive Programming based on RxJS
nodew
0
59
Lazy List With Generator and Iterator
nodew
1
760
ddd.pdf
nodew
0
220
An Introduction to Haskell
nodew
2
94
Other Decks in Programming
See All in Programming
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
Old Dog, New Tricks: The Java 25 Reinvention - JNation
bazlur_rahman
0
140
TAKTでAI駆動開発の品質を設計する
j5ik2o
6
910
Spec Driven Development | AI Summit Lisbon
danielsogl
PRO
0
150
GitHub Copilot CLIのいいところ
htkym
2
1.3k
メソッドのジェネリクスでGoの夢は広がるか? / Kyoto.go #65
utgwkk
3
540
RTSPクライアントを自作してみた話
simotin13
0
490
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
4k
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
450
AI駆動開発で崩れていくコードベースを立て直す
kyoko_nr_nr
1
440
ビジネスモデルから紐解く、AI+型駆動開発
hirokiomote
2
5.2k
Stage 3 Decorators でできること / できないこと / TSKaigi 2026
susisu
1
1.5k
Featured
See All Featured
Producing Creativity
orderedlist
PRO
348
40k
Making the Leap to Tech Lead
cromwellryan
135
9.9k
Embracing the Ebb and Flow
colly
88
5.1k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
560
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.9k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
720
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
360
Prompt Engineering for Job Search
mfonobong
0
330
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
590
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
65
56k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Transcript
ES6 PROXY AN INTRODUCTION TO
OVERVIEW 1、WHAT IS PROXY 2、USE CASES 3、OBSERVABLE & IMMER.JS 4、DISCUSS
WHAT IS PROXY PROXY IS A DESIGN PATTERN
WHAT IS PROXY PROXY IN JAVASCRIPT The Proxy object is
used to define custom behavior for fundamental operations (e.g. property lookup, assignment, enumeration, function invocation, etc)
WHAT IS PROXY PROXY IN JAVASCRIPT handler.apply() handler.construct() handler.defineProperty() handler.deleteProperty()
handler.get() handler.getOwnPropertyDescriptor () handler.getPrototypeOf() handler.has() handler.isExtensible() handler.ownKeys() handler.preventExtensions() handler.set() handler.setPrototypeOf()
USE CASES BASIC USAGE
USE CASES SET DEFAULT PROPERTIES
USE CASES PRIVATE PROPS
USE CASES TRACK PROPS CHANGE
USE CASES SINGLETON
USE CASES PROP VALIDATORS
USE CASES COOKIE OBJECT HANDLER
USE CASES REVOCABLE PROXY
REAL WORLD PROJECT OBSERVABLE-UTIL ▸ https://github.com/nx-js/observer-util
REAL WORLD PROJECT OBSERVABLE-UTIL
REAL WORLD PROJECT IMMER ▸ https://github.com/mweststrate/immer
REAL WORLD PROJECT IMMER
SUMMARY PROS & CONS ▸ Expando property access ▸ Low
coupling ▸ Protect the original object ▸ Meta programming in a way ▸ Browser compatibility