UNPKG

@kamilmielnik/trie

Version:

Trie data structure implementation in TypeScript. Highly performant. No dependencies. Built for a Scrabble Solver.

9 lines (8 loc) 281 B
import type { Node } from '../types'; /** * Creates a new {@link Node} based on array of words. * * @param words - array of words to put in the {@link Node}. * @returns New {@link Node} containing all given words. */ export declare const fromArray: (words: string[]) => Node;