Sin embargo, podemos utilizar el objeto Array predefinido y sus métodos para trabajar con matrices en sus aplicaciones.
However, you can use the predefined Array object and its methods to work with arrays in your applications.
El siguiente código crea el objeto Array vacío users, que luego se llena mediante cuatro llamadas al método push().
The following code creates an empty Array object users and the array is then populated using four calls to push().
var Esta función puede contener un comando simple (por ejemplo, una sentencia trace()) o una operación más compleja y se invoca con tres argumentos; el valor de un elemento, el índice de un elemento y el objeto Array
This function can contain a simple command (for example, a trace() statement) or a more complex operation, and is invoked with three arguments; the value of an item, the index of an item, and the Array object
El objeto Array tiene métodos para manipular matrices de varias maneras, tales como unirlas, invertirlas, y ordenarlas.
The Array object has methods for manipulating arrays in various ways, such as joining, reversing, and sorting them.
Muchos métodos para el objeto Array de JavaScript están diseñados para ser aplicados generalmente a todos los objetos los cuales "se asemejan" a las matrices unidimensionales.
Many methods on the JavaScript Array object are designed to be generally applied to all objects which "look like" Arrays.
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.
The second argument is an actual array (that is, it inherits through the Array.prototype chain) and not the array-like arguments object.
Autres résultats
Para poder realizarlo, primero debe convertir el objeto en un array.
To apply these functions to an object, cast the object to an array first.
Si el objeto es un Array, devuelve true, false en cualquier otro caso.
If the object is an Array, true is returned, otherwise false is.
Una vez se haya añadido el objeto al array, volvemos a asignar a la propiedad nombre una cadena vacía como valor.
Once the object is pushed into the array, an empty string is assigned again to the name property.
Muchos métodos en el objeto Javascript Array son diseñados para ser generalmente llamados para todos los objetos que "parecen" Arrays.
Many methods on the JavaScript Array object are designed to be generally applied to all objects which "look like" Arrays.
Referencias a Objetos (no el objeto real): concat copia las referencias de objetos en el nuevo array.
Object references (and not the actual object): concat copies object references into the new array.
Devuelve la geometría de la página asociada con el objeto Imagick en un array asociativo con las claves "width" (ancho), "height" (alto), "x", e "y".
Returns the page geometry associated with the Imagick object in an associative array with the keys "width", "height", "x", and "y". Valorile întoarse
El orden de los objetos en el array define el orden de entrada del formulario.
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.