2 ms·
Does this also mean that in the function that returns an object vs. prototype debate the former wins because object literals presumably require less class trans
by schindlabua 9y ago
Does this also mean that in the function that returns an object vs. prototype debate the former wins because object literals presumably require less class transitions?
let Ctor = function(a, b){
this.a = a;
this.b = b;
}
vs
let obj = (a,b) => ({
a:a, b:b
});