obj[dynamic_property] = /* … */;
(And if you can use Map, you probably should… it avoids the JS footgun here.)
(And if you can use Map, you probably should… it avoids the JS footgun here.)