Exemple pentru "WeakMaps"
Nu am putut găsi această intrare. Se afișează rezultate aproximative. Verificați ortografia sau propuneți adăugarea acestui termen în dicționar.
In native WeakMaps, references to key objects are held "weakly", which means that they do not prevent garbage collection in case there would be no other reference to the object.
En los WeakMap nativos, las referencias a los objetos clave son mantenidas "débilmente", lo que quiere decir que no impiden la recolección de basura en caso de que no haya otras referencias al objeto.
The following example is from Nick Fitzgerald blog post "Hiding Implementation Details with ECMAScript 6 WeakMaps".
El siguiente ejemplo es del artículo de Nick Fitzgerald "Hiding Implementation Details with ECMAScript 6 WeakMaps".
Alte rezultate
This is the WeakMap function by default.
Esta es la función de Map por defecto.
Sets the value for the key in the WeakMap object.
Establece un valor para la llave en el objeto Map.
The key of the element to test for presence in the WeakMap object.
El valor del elemento a agregar al objeto Map.
The key of the element to remove from the WeakMap object.
El elemento asociado con la llave específica en el objeto WeakMap.
Represents the prototype for the WeakMap constructor.
WeakMap::offsetExists - Checks whether a certain object is in the map
Comprueba si un cierto objeto está en un mapa Descripción
One use case of WeakMap objects is to store private data for an object or to hide implementation details.
Un caso de uso de los objetos WeakMap es almacenar datos privados para un objeto o esconder sus detalles de implementación.
WeakMap::count - Counts the number of live entries in the map
Cuenta el número de entradas vivas de un mapa Descripción
WeakMap::key - Returns the current key under iteration
WeakMap::key - Devuelve la clave actual de la iteración
The value of the element to add to the WeakMap object.
El elemento asociado con la llave específica en el objeto WeakMap.
WeakMap::offsetUnset - Removes an entry from the map
WeakMap::offsetUnset - Elimina una entrada del mapa