idea-toolbox
    Preparing search index...

    Function isEmpty

    • Check if a field (/variable) is empty or invalid, based on its type. If the type isn't passed as a parameter, it will be auto-detected.

      Parameters

      • field: any

        the field to check

      • OptionalfieldType: isEmptyFieldTypes

        set to force a type check

      Returns boolean

      return if the field is empty/invalid or not