Question: is empty function in javascript?
Answer: Free JavaScript Book! The function in question is called empty() . Similar to the PHP function of the same name, it takes a variable or property and tells you if the value is empty. ... PHP's empty() function is annoyingly loose. For example, 0 and false will both return true , which surprises many an unwary developer!