Answers for "how to check string is not null in js"

1

javascript is not null

if(data !== null && data !== '') {
   // do something
}
Posted by: Guest on June-10-2020
0

js if string not empty

if (!str.length) { ...
Posted by: Guest on February-26-2021

Code answers related to "how to check string is not null in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language