Hey, thanks for pointing these out, appreciated.
I'm not aiming for speed in this tutorial, it's just a tutorial to teach how Tries work, I knew arrays are faster in this kind of situation, even an array.filter can do the job, so you're right; but Tries are more flexible in my opinion, they can easily be customized for any use.
Anyway, I always like it when I get criticized, I learn something, thank you nostrademons!