Examples with "a WeakMap" and their translation in Frans
We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
The key in a WeakMap is held weakly.
The delete() method removes the specified element from a WeakMap object.
La méthode delete() retire un élément donné de l'objet WeakMap.
The set() method adds a new element with a specified key and value to a WeakMap object.
La méthode set() permet d'ajouter un nouvel élément avec une clé et une valeur à un objet WeakMap.
get: The get() method returns a specified element from a WeakMap object.
get: La méthode get() permet de renvoyer un élément donné d'un objet WeakMap.
Primitive data types as keys are not allowed (e.g. a Symbol can't be a WeakMap key).
Des types de données primitifs ne sont pas autorisés pour les clés (ex : un Symbol ne peut pas être une clé dans un WeakMap).
Andere resultaten
Set and WeakSet represent a set of objects, while Map and WeakMap associate a value to an object.
Set et WeakSet représentent des ensembles d'objets, Map et WeakMap associent une valeur à un objet.
Represents the prototype for the WeakMap constructor.
Cette propriété représente le prototype du constructeur WeakMap.
Keys of WeakMaps are of the type Object only.
WeakMap::offsetGet - Returns the value pointed to by a certain object
WeakMap::offsetGet - Retourne la valeur pointée par un certain objet
WeakMap::offsetExists - Checks whether a certain object is in the map
WeakMap::offsetExists - Vérifie si un objet est dans le map
One use case of WeakMap objects is to store private data for an object or to hide implementation details.
Un cas d'utilisation des objets WeakMap est le stockage de données privées d'un objet ou pour cacher certains détails d'implémentation.
Each key-value pair will be added to the new WeakMap.
Required. The value of the element to add to the WeakMap object.
Il correspond à la valeur de l'élément qu'on souhaite ajouter à l'objet WeakMap.