JSFiddle - React, Tailwind, and code Playground

by btipling

JavaScript

function Foo () {
    this.data = {};
    Object.seal(this.data);
}

var f = new Foo();
f.data.bar = "nope";
console.log(f.data.bar);