Compare Revisions

Array

Revision 485709:

Revision 485709 by peter.kehl on

Revision 486199:

Revision 486199 by patrickdw on

Title:
Array
Array
Slug:
Web/JavaScript/Reference/Global_Objects/Array
Web/JavaScript/Reference/Global_Objects/Array
Tags:
"Array","JavaScript Reference","JavaScript"
"Array","JavaScript Reference","JavaScript"
Content:

Revision 485709
Revision 486199
n280            'some', 'every', 'isArray'n280            'some', 'every'
tt284            if (!Array[methodName]) {
284            var method = Array.prototype[methodName];285                var method = Array.prototype[methodName];
286                if (typeof method === 'function') {
285            Array[methodName] = function (arg1) {287                    Array[methodName] = function (arg1) {
286                return method.apply(arg1, Array.prototype.slice.c288                        return method.apply(arg1, Array.prototype
>all(arguments, 1));>.slice.call(arguments, 1));
289                    };
290                }
287            };291            }

Back to History