array, javascript, set

What is a WeakMap in JavaScript?

A WeakMap is a collection of key-value pairs where the keys are objects and the values can be arbitrary values. […]