Message from JavaScript discussions

November 2017

— I bet Floofies knows :D

— 

function clone(obj) {
return Object.keys(obj).reduce(function (result, key) {
result[key] = obj[key];
return result;
}, {});
}

— Shallow clone

— Doesn't Object.new do this job

— Or maybe that was Object.create

— Yeah thats what I use it for

— myThing.prototype = Object.create(otherThing.prototype);

— Cycle detection?

— Item refers to panels and panels refers to item, so that is a cycle I think

— Oh I have no idea haha

— What do you want to detect?

— You want to parse that string?