I'm using the Fuse.js library in my Next JS/Typescript web application. I'm unsure of how the includeMatches option works for highlighting purposes. If I use that option, I get a matches object in the result object that contains a whole bunch of from and to indexes and it seems to be way more than is being actually matched.
How can I use this array for highlighting purposes? Anyone?
A good starting point would be https://gist.github.com/evenfrost/1ba123656ded32fb7a0cd4651efd4db0