For information on using arrays with regular expressions, see Regular Expressions. Working with array-like objects
Pour plus d'informations sur l'utilisation des tableaux et des expressions rationnelles, voir la page Expressions rationnelles.
The for... of statement creates a loop iterating over iterable objects, including: built-in String, Array, Array-like objects (e.g., arguments or NodeList), TypedArray, Map, Set, and user-defined iterables.
L'instruction for... of permet de créer une boucle Array qui parcourt un objet itérable (ce qui inclut les objets Array, Map, Set, String, TypedArray, l'objet arguments, etc.)
Array-like objects slice method can also be called to convert Array-like objects/ collections to a new Array.
La méthode slice() peut aussi être appelée pour convertir des objets/collections similaires à des tableaux, en un nouveau tableau.
Autres résultats
The arguments of a function are maintained in an array-like object.
Les arguments d'une fonction sont maintenus dans un objet semblable à un tableau.
Reversing the elements in an array-like object
Inverser l'ordre des éléments d'un objet semblable à un tableau
The following example creates an array-like object a, containing three elements and a length property, then reverses the array-like object.
Take Array.prototype.slice, for example, which you want to use for converting an array-like object to a real array. You could create a shortcut like this
Si, par exemple, on considère la fonction Array.prototype.slice et qu'on souhaite l'utiliser pour convertir un objet semblable à un tableau en un objet array, on peut créer un raccourci de cette façon
Deprecated, Function, JavaScript, Property, arguments The function.arguments property refers to an an array-like object corresponding to the arguments passed to a function.
Déprécié, Function, JavaScript, Propriété, Reference, arguments La propriété function.arguments fait référence à un objet dont la structure est semblable à celle d'un tableau dont les éléments correspondent aux arguments passés à une fonction.
Summary The apply() method calls a function with a given this value and arguments provided as an array (or an array-like object).
La méthode apply() appelle une fonction en lui passant une valeur this et des arguments sous forme d'un tableau (ou d'un objet semblable à un tableau).
The HTMLCollection interface represents a generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
L'interface HTMLCollection est constituée d'une collection générique (à la manière d'un tableau similaire à arguments) d'éléments (dans l'ordre du document) et offre des méthodes et des propriétés pour sélectionner ces éléments dans la liste.
Creates a new Int8Array from an array-like or iterable object.
Crée un nouvel objet Int8Array à partir d'un objet semblable à un tableau ou d'un objet itérable.
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.