hooks icon indicating copy to clipboard operation
hooks copied to clipboard

Feature: @cshooks/useTrie - Add "Symbol.iterator" to make the trie iterable

Open dance2die opened this issue 6 years ago • 0 comments

Adding Symbol.iterator would allow iterating over the trie object using for...of and also return an array value using Array.from(trie).

In theory, this would allow users to get the orignal (order not guaranteed) array passed to the trie (unless any character is added/removed)

dance2die avatar Mar 08 '19 14:03 dance2die