@rjsf/utils
Version:
Utility functions for @rjsf/core
8 lines (7 loc) • 362 B
TypeScript
/** Determines whether the given `formData` represents valid form data, such as a primitive type, an array, or a
* non-empty object.
*
* @param formData - The data to check
* @returns - True if `formData` is not undefined, null, a primitive type or an array or an empty object
*/
export default function isFormDataAvailable<T = any>(formData?: T): boolean;