Memory Management & Garbage Collection

What memory management best practice should be applied to this class?
class ResourceManager {
  constructor() {
    this.resources = new Map();
  }
  register(id, resource) {
    this.resources.set(id, resource);
  }
  unregister(id) {
    this.resources.delete(id);
  }
  getResource(id) {
    return this.resources.get(id);
  }
}
Next Question (14/40)