Skip to content

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

Description

@dance2die

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)

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions