— Then it finishes iteration of the subject object and switches to iteration of that path record, using it to construct the new object
Message permanent page
— 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
— Doesn't Object.new
do this job