6 lines
229 B
JavaScript
6 lines
229 B
JavaScript
const texto_busca = (...texto) => texto.map(
|
|
(txt) => txt === null || txt === void 0 ? "" : String(txt).normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, " ").toLowerCase()
|
|
).join(" ");
|
|
export {
|
|
texto_busca
|
|
};
|