The second argument is an actual array (that is, it inherits through the Array.prototype chain) and not the array-like arguments object.
El segundo argumento es un array real (es decir, hereda a través de la cadena Array.prototype) y no el objeto array con el objeto arguments.
Array and object literals Like many scripting languages, arrays and objects (associative arrays in other languages) can each be created with a succinct shortcut syntax.
Arrays y la definición literal de objetos Al igual que muchos lenguajes de script, arrays y objetos (arrays asociativos en otros idiomas) pueden ser creados con una sintaxis abreviada.
The arguments of a function are maintained in an array-like object.
Specification Returns an array-like object of all child elements which have all of the given class names.
Retorna un objecto similar a un array de los elementos hijos que tengan todos los nombres de clase indicados.
Using the arguments object The arguments of a function are maintained in an array-like object.
Es posible invocar los argumentos de una función utilizando el objeto arguments.
Function.apply() can accept any array-like object as the arguments list, instead of only true arrays.
Function.apply() puede aceptar cualquier objeto estilo-array como lista de argumentos, en lugar de solo arrays reales.
The only native, array-like objects are strings, although they are not suitable in applications of this method, as strings are immutable.
Los únicos objetos nativos que se asemejen al array son strings objetos, aunque estos no se puedan usar en la aplicación de este método ya que son inmutables.
The other way (introduced in ECMAScript 5) is to treat the string as an array-like object, where individual characters correspond to a numerical index
El otro modo es tratar la cadena como un arreglo (vector), donde cada índice se corresponde con un carácter individual
Contenu potentiellement sensible ou inapproprié
Les exemples vous aident à traduire le mot ou l’expression cherchés dans des contextes variés. Ils ne sont ni sélectionnés ni validés par nous et peuvent contenir des mots ou des idées inappropriés. Signalez des exemples à modifier ou à retirer. Les traductions potentiellement sensibles, inappropriées ou familières sont généralement marquées de rouge ou d’orange.