Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
typescript string null or white space
Chang yo
Programming language:
TypeScript
2021-04-11 08:57:37
0
Q:
typescript string null or white space
Jessica
Code:
TypeScript
2021-10-01 14:58:39
function isEmptyOrSpaces(str){ return str === null || str.match(/^ *$/) !== null; }
0
Tags
string
script
Related
typescript string interpolation
isnull or empty typescript
typescript null and undefined check
how to check is null or empty in typescript
typescript remove whitespace from string
typescript space between capital letters
New to Communities?
Join the community