Skip to content

Instantly share code, notes, and snippets.

View rileysparsons's full-sized avatar

Riley Parsons rileysparsons

View GitHub Profile
> const a = {'id': 1, 'status': 3};
> const b = {'id': 2, 'status': '4'};
> const c = {'id': 500, 'foo': a};
> c
{ id: 500, foo: { id: 1, status: 3 } }
> a.status = 33;
33
> c
{ id: 500, foo: { id: 1, status: 33 } }
> const aCopy = c.foo;