So if i have a string that looks like this:
const name = "Matt"
And want to create an array that looks like this:
nameSearchArr = [
0: "M",
1: 'Ma',
2: 'Mat',
3: 'Matt
]
I am trying to get around Firestores no 'full text search' problem by creating an array and using 'array-contains' so i can search a name and while typing in it will match the nameSearchArr. Anyone know the best way to do it? Thank you in advance!