Re:The Two Pillars of JavaScript: Part 1: How to Escape the ...
by nateroling on Saturday December 13, 2014 @12:04PM
(#8745603)
Object.create(null) creates an empty object with no prototype that you can safely use as a hash, as mentioned in the article you linked.
People call it an object because that is what it is. If your code is using Javascript objects as general purpose hash tables with the normal syntactic sugar then your code is broken[1]. The correct way to use an object as a hash table involves a bunch of ugly extra syntax that makes it more verbose than hash tables in any other language I'm aware of.
[1] http://www.devthought.com/2012/01/18/an-object-is-not-a-hash...