SyntaxFix
Write A Post
Hire A Developer
Questions
check for null or undefined in all cases a_string
if (a_string && typeof a_string === 'string') { // this is a string and it is not null or undefined. }