A typeahead component for inputs
$ npm i word-suggestions
import {prefix} from "word-suggestions"
const wordsArray = ["hello","hey","how are you","do you have a pen?","coding","codes"]
prefix.UploadArray(wordsArray)
const output = prefix.searchResponse("Co")
console.log(output) // ["coding","codes"]