[KongchangAI]
ConceptJavaScript Proxy

Proxy

A JavaScript metaprogramming object introduced in ES6 that creates a proxy for a target object, allowing interception of fundamental operations such as property access, assignment, and function invocation.

Timeline (last 90 days)

Oct 17

GHC's PolyKinds extension allows type variables to have polymorphic Kinds, enabling types such as Proxy to adapt to any Kind.

Unverified50%
Oct 17

Proxy is defined as data Proxy (t :: k) = Proxy, where the Kind of t can be any Kind, so both Proxy Int and Proxy Maybe are legal.

Unverified50%
Oct 16

Proxy can intercept and customize [[Call]] through the apply trap, and intercept [[Get]] through the get trap, thereby making non-function objects appear callable.

Unverified50%

All Facts (3)

Source Articles