From fed834bdcb15e8151a6e8e166b420e624e2fc077 Mon Sep 17 00:00:00 2001 From: Sargis Date: Sat, 17 Aug 2019 20:13:29 +0400 Subject: [PATCH] Update article.md --- 1-js/99-js-misc/01-proxy/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/99-js-misc/01-proxy/article.md b/1-js/99-js-misc/01-proxy/article.md index 7a00ef66..1ca46cb2 100644 --- a/1-js/99-js-misc/01-proxy/article.md +++ b/1-js/99-js-misc/01-proxy/article.md @@ -99,7 +99,7 @@ It triggers when a property is read, with following arguments: Let's use `get` to implement default values for an object. -We'll make a numeric array that returns return `0` for non-existant values. +We'll make a numeric array that returns `0` for non-existant values. Usually when one tries to get a non-existing array item, they get `undefined`, but we'll wrap a regular array into proxy that traps reading and returns `0` if there's no such property: