Closed BenoitZugmeyer closed 6 years ago
Awesome! 🙂 That's a pretty nasty bug, thanks for catching and fixing it. I am checking the performance impact and merging this soon. (I don't think this will slow things down.)
I updated the PR!
Perfect, thanks! The next patch release is rolling out later today with your fix 🙂
Published it as v4.1.3, the change log is here: https://github.com/nx-js/observer-util/releases/tag/v4.1.3. Thanks again 👍
Currently, keys are always used as string, since they are stored as property name of an object. This PR allows using objects as key by using a
Map
instead of an object for the storage.I hope it makes sense. Great project!