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!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
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