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).
Description The unshift method inserts the given values to the beginning of an 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.
The arguments object is an Array-like object corresponding to the arguments passed to a function.
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.