Function
Check if any type of variable is empty
The variable to check
True if the value is empty, false otherwise
isEmpty(""); // trueisEmpty(" "); // trueisEmpty(null); // trueisEmpty([]); // trueisEmpty({}); // trueisEmpty("hello"); // falseisEmpty([1, 2]); // false Copy
isEmpty(""); // trueisEmpty(" "); // trueisEmpty(null); // trueisEmpty([]); // trueisEmpty({}); // trueisEmpty("hello"); // falseisEmpty([1, 2]); // false
Check if any type of variable is empty