JSFiddle - React, Tailwind, and code Playground
by clauswilke
JavaScript
x = {
a: [1, 2, 3],
b: 5,
c: "hello"
}
y = Object.create(x)
y.a[0] = 3
console.log(x)
by clauswilke
x = {
a: [1, 2, 3],
b: 5,
c: "hello"
}
y = Object.create(x)
y.a[0] = 3
console.log(x)