const reg = new FinalizationRegistry(k => console.log(k, 'freed'))
// Use to release resources tied to object lifetimesUse FinalizationRegistry to release external resources when an object is no longer reachable.
typeof reg.unregister is 'function'.
Challenge: Verify that unregister is a function on the instance.