From fc9248c7349d3e59aa12142557ba052501028163 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0ajd=C3=ADk?= <30591067+MichalSajdik@users.noreply.github.com> Date: Sun, 26 Feb 2023 17:13:43 +0100 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 86dc5e8..33fb047 100644 --- a/README.md +++ b/README.md @@ -3209,7 +3209,7 @@ var p = new Proxy({}, handler); p.a = 10; p.b = null; -console.log(p.a, p.b); // 1, null +console.log(p.a, p.b); // 10, null console.log('c' in p, p.c); // false, 100 ``` In the above code, it uses `get` handler which define the behavior of the proxy when an operation is performed on it