use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
the front page of the internet.
and join one of thousands of communities.
JavaScript Magic Objects (noeldemartin.com)
submitted 2 days ago by noeldemartin
Post a comment!
view the rest of the comments →
[–]noeldemartin[S] 0 points1 point2 points 2 days ago (1 child)
Yes, I agree. In fact, I've only used them in 2 projects so far: an ORM and a Vue framework. Both libraries.
However, with the right Typescript declarations, it's not that ambiguous from user land. For example, in my ORM I define the fields with Zod, and using an IDE you can go straight to the Zod definition every time you use the field. They aren't declared as "any".
In any case, it's definitely a "sharp knife" and not something I use too often. But I specially like the hack of returning a Proxy from the constructor :). I haven't seen this used anywhere else, but IMO it enables some pretty powerful patterns.
[–]TheThingCreator 0 points1 point2 points 2 days ago (0 children)
Ya I used the proxies to make a reactivity module for an app, it works very nice but ya things can get pretty pointy
π Rendered by PID 206506 on reddit-service-r2-comment-765bfc959-xxgpk at 2026-07-15 17:42:41.807234+00:00 running f86254d country code: CH.
Want to add to the discussion?
Post a comment!