/tags/key
- 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, ...
Seeker of knowledge, hacker of things. Lover of cats. Owner of unmatched enthusiasm.
www.hacksparrow.com
Copyright © 2021 Hage Yaapa
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, ...