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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Joe Wang
April 26, 2018
Programming
71
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
56
Lazy List With Generator and Iterator
nodew
1
750
ddd.pdf
nodew
0
220
An Introduction to Haskell
nodew
2
93
Other Decks in Programming
See All in Programming
サプライチェーン攻撃対策「層を重ねて落ちない壁」を10日間で組み上げた話 #TechLeadConf2026
kashewnuts
1
290
〜バイブコーディングを超えて〜 チームで実験し続けたAI駆動開発
tigertora7571
0
210
PHPでバイナリをパースして理解するASN.1
muno92
PRO
0
460
書籍「ユーザーストーリーマッピング」が私のバイブル
asumikam
4
490
Import assertionsが消えた日~ECMAScriptの仕様はどう決まり、なぜ覆るのか~
bicstone
2
180
Are We Really Coding 10× Faster with AI?
kohzas
0
180
PHPでローカル環境用のSSL/TLS証明書を発行することはできるのか? #phpconkagawa
akase244
0
370
AI時代だからこそ「Bloc」を採用する価値があるのかもしれない
takuroabe
0
180
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
1
2k
PHPer、Cloudflare に引っ越す
suguruooki
2
220
サーバーレスで作る、動画データ管理基盤
oyasumipants
0
200
Oxlintはいかにしてtsgolintのlint ruleを呼び出しているのか
syumai
0
160
Featured
See All Featured
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
390
Technical Leadership for Architectural Decision Making
baasie
3
360
Color Theory Basics | Prateek | Gurzu
gurzu
0
310
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Faster Mobile Websites
deanohume
310
31k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.4k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
170
Rails Girls Zürich Keynote
gr2m
96
14k
Deep Space Network (abreviated)
tonyrice
0
140
RailsConf 2023
tenderlove
30
1.4k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
The SEO identity crisis: Don't let AI make you average
varn
0
460
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