Skip to main content

Overview

This function checks whether a string or variable is empty, meaning it has 0 characters. It returns a boolean value: true if the string is empty, false if the string is not empty.

Parameters

isEmpty(string)
  • String: The string to check if its empty.

Example

isEmpty("Hello")
Returns false.
isEmpty("")
Returns true.