chad3814 / node-hashtable

Native hashtable interface for when V8 objects can't take the heat
MIT License
106 stars 41 forks source link

Non-string keys #23

Closed BHare1985 closed 8 years ago

BHare1985 commented 8 years ago

Is this a possible feature?

Would like to use this like a ES6's Map and use numbers as keys (preferably with real 4byte integers and/or 8byte int64) but a standard 8byte double-precision floating-point format numbers would suffice

chad3814 commented 8 years ago

that already works actually, any value except null and undefined are valid keys. I added that when I took this project over and wanted an es6 map interface; later I split the es6 map out into a separate module https://github.com/chad3814/es6-native-map.

chad3814 commented 8 years ago

(I'll update the readme to reflect this)