• JavaScript: Object as object key

    Can you use objects as Object keys in JavaScript? The short answer is "no". All JavaScript object keys are strings. Even if you pass an object as a key, the object's toString() will be called on it, ...