JS: Difference Between Reflect.Set vs Property Assignment Syntax

By Xah Lee. Date: . Last updated: .

Reflect.set(obj, key, val)

is similar to the operator form

obj[key] = val

The difference are:

BUY ΣJS JavaScript in Depth