2 ms·
I'm inclined to agree to some extent... I think that JS can be beautiful and intuitive. However, I've seen too many instances of the following. var bazCop
by tracker1 10y ago
I'm inclined to agree to some extent... I think that JS can be beautiful and intuitive. However, I've seen too many instances of the following.
var bazCopy = [];
for (var i=0; i<bar.baz.length; i++) {
var orig = bar.baz[i];
bazCopy[i] = {
fizz: orig.fiz,
buzz: orig.buzz
};
}
parentCopy.baz = bazCopy;
Over map/reduce/filter, and the like... Sometimes doing code reviews on pull requests is exhausting.