I have a table consisting of datas where some are null.I want to use search filter but tolowercase error occurs beacuse of null | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

I have a table consisting of datas where some are null.I want to use search filter but tolowercase error occurs beacuse of null

Null values causes to lowercase() to not work

19th Sep 2019, 9:11 AM
Yasik Raam
Yasik Raam - avatar
1 Resposta
0
Show your code. // Example to filter // ['jhona','Jgosadsn',null,'21jods',undefined, NaN, false,'mart'].filter(e=>e); // Out code: ["jhona", "Jgosadsn", "21jods", "mart"]
30th Sep 2019, 6:23 PM
JĆ“natas Araripe
JĆ“natas Araripe - avatar