How to check if a string is empty in JavaScript?
Originally Published Here ๐!
To check if a string is empty you can use the strict equality operator (or the triple equals ===) and compare it with an empty string (or empty brackets "" ) in JavaScript.
You can do it like this,
// Check if string is ...
melvingeorge-me.hashnode.dev1 min read