I\'ve came across this WeakRef polyfill: ungap / weakrefs.
I\'m struggling to understand how it works, particularly at line 11-14: