strong reference

A normal reference that keeps the object it points to alive; a weak reference does not stop garbage collection.

In more detail

A Map holds its keys strongly, so objects used as keys never get collected while the map exists. WeakMap, WeakSet and WeakRef hold weakly.

Related terms

Taught in

References