Message from JavaScript discussions

November 2017

— filter records a list of paths that pass the test, using paths to continually keep a list of all existing paths which it pulls from

Message permanent page

— 

Then it finishes iteration of the subject object and switches to iteration of that path record, using it to construct the new object

— I have this:

— store.componentConfig = Object.assign({}, node.dataset)

— But it does not work properly on Safari (ios9)

— Because fuck everything

— Does anyone knows a -decent- and -elegant- method to do the same thing?

— I bet Floofies knows :D

— 

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

Message permanent page

— Shallow clone

— Doesn't Object.new do this job

— Or maybe that was Object.create