You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the line below from that example was not setting the word variable in the ternary statement. return word.indexOf(term) === 0 ? word : null;
It needs to be word = word.indexOf(term) === 0 ? word : null;
in order for it to work properly.
Minor issue aside this is a great library. Thanks!
The code on main page in "Synopsis" section is incorrect. There's no "index: 1" defined, so the code doesn't work.
The text was updated successfully, but these errors were encountered: