WeakRef : Object
A WeakRef allows holding on to another object, while still allowing that object to be garbage collected if there are no other strong references to it. Note, JavaScript makes no guarantees on if or when an object will be garbage collected. See also FinalizationRegistry.
Copyright © JavaScripture Contributors