ECMAScript Objects
Objects are a core data type.
Contents
Description
A basic collection of data passed by reference.
const obj = {
foo: 1,
bar: {
baz = 2,
},
};
const shallow_copy = { ...obj };
const deep_copy = structuredClone(obj);
Objects are a core data type.
Contents
A basic collection of data passed by reference.
const obj = {
foo: 1,
bar: {
baz = 2,
},
};
const shallow_copy = { ...obj };
const deep_copy = structuredClone(obj);ECMAScript/Objects (last edited 2025-12-19 20:25:12 by DominicRicottone)