Quantcast
Channel: NCZOnline » Proxies
Browsing latest articles
Browse All 2 View Live

Creating defensive objects with ES6 proxies

This past week I spent an hour debugging an issue that I ultimately tracked down to a silly problem: the property I was referencing didn’t exist on the given object. I had typed request.code and it...

View Article



Creating type-safe properties with ECMAScript 6 proxies

In my last post, I explained how to use ECMAScript 6 proxies to throw an error when a non-existent property is read (rather than returning undefined). I came to realize that proxies allow a transparent...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images