(input, search)
| 2 | import { getNcmData } from '@/services/sefaz'; |
| 3 | |
| 4 | const searchByDescription = (input, search) => { |
| 5 | return String(input).toLowerCase().includes(search.toLowerCase()); |
| 6 | }; |
| 7 | |
| 8 | const searchByCode = (input, search) => { |
| 9 | return input.replace(/\D/g, '').startsWith(search.replace(/[,.]/, '')); |