Function isEmpty

check if the given variable is null, undefined or an empty string(zero length)

  • Parameters

    • variable: any

    Returns boolean

    true if given variable is null or undefined or an empty string, false in other cases