0

I need to delete the accents when I perform a search.

For example in my array it looks like this:

objcts = [
   {code: "123", name: "Timóteo"},
   {code: "685", name: "Timozim"},
   {code: "752", name: "Timirim"},
];

The guy researching "timo" or "Timo" or "Timó" it should appear for him the same object that is with code 123 and 685.

In research he should return this to me:

objcts = [
   {code: "123", name: "Timóteo"},
   {code: "685", name: "Timozim"},
];

I tried to use the source to do this function but I can not do it. Would you like to do this using your plugin?

In this return I need it to give me an array with all objects that satisfy that search.

I know that my question was marked with duplicate, but none of them have the answer that I need, one of them shows how to search in string and another the search, I can not put this two contents in one, my doubt is precisely in this part.

Renan Rodrigues
  • 286
  • 1
  • 4
  • 22

0 Answers0