JSFiddle - React, Tailwind, and code Playground

by Yin Yong

JavaScript

const target = {
	a: 2
}

const proxy = new Proxy(target, {
	defineProperty(target, p, desc) {
  	return true;
  }
});

Object.defineProperty(proxy, 'b' , {
value:3,
configurable:false
})