Top "Is-empty" questions

Questions about items that can be described as empty or having no data value

How can I check for an empty/undefined/null string in JavaScript?

I saw this question, but I didn't see a JavaScript specific example. Is there a simple string.Empty available in …

javascript null is-empty
Check if array is empty or null

I would like to know how to check if an array is empty or null in jQuery. I tried array.…

jquery arrays is-empty
How to check if a file is empty in Bash?

I have a file called diff.txt. I Want to check whether it is empty. I wrote a bash script …

linux bash unix file-handling is-empty
What is the best way to test for an empty string in Go?

Which method is best (more idomatic) for testing non-empty strings (in Go)? if len(mystring) > 0 { } Or: if mystring != "" { } Or …

string go is-empty
Detect if an input has text in it using CSS -- on a page I am visiting and do not control?

Is there a way to detect whether or not an input has text in it via CSS? I've tried using …

css input is-empty stylish
VBA Check if variable is empty

I have an object and within it I wanna check if some properties is set to false, like: If (not …

vba object variables is-empty
How to convert empty spaces into null values, using SQL Server?

I have a table and the columns on this table contains empty spaces for some records. Now I need to …

sql-server null is-empty
Checking if a collection is empty in Java: which is the best method?

I have two ways of checking if a List is empty or not if (CollectionUtils.isNotEmpty(listName)) and if (listName != …

java collections is-empty
Is it possible to set an object to null?

Further in my code, I check to see check if an object is null/empty. Is there a way to …

c++ object null is-empty stdoptional