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

_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to