Skip to content

v2.1.0: More `Map`-conformance + optimisation

Latest
Compare
Choose a tag to compare
@anko anko released this 16 Apr 17:18
· 23 commits to master since this release

Fixes:

  • .delete now no longer throws when targeting non-existent paths

New features, to better match behaviour of Map:

  • .delete now returns a Boolean
  • .set now returns a self-reference, so you can chain .set calls

Improved performance by about 20× for .get and .has, 8× for .set, 3× for .delete, and 1.3× for iterators, by converting recursive algorithms to iterative.