Nov 17 meeting notes
David Herman
dherman at mozilla.com
Fri Nov 18 07:38:34 PST 2011
On Nov 17, 2011, at 5:20 PM, Rick Waldron wrote:
> This is a real problem, in real JavaScript, in the real world. Considering the positive response from actual developers in the JS community, I'd like to ask that it be reconsidered.
You can write this function in JS today:
function array(x) {
var result = [];
for (var i = 0, n = x.length; i < n; i++) {
if (i in x)
result[i] = x[i];
}
return result;
}
But new Array class methods touch on open issues related to classes:
https://gist.github.com/1376730
Dave
More information about the es-discuss
mailing list