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

    • Optional fieldType: isEmptyFieldTypes

      set to force a type check

    Returns boolean

    return if the field is empty/invalid or not

Generated using TypeDoc