UNPKG

@xraph/smartform-react

Version:

React library for rendering and validating SmartForms with shadcn components

8 lines (7 loc) 362 B
/** * Retrieves a value by path from an object, supporting dot notation and array indices. * Example paths: "user.name", "items[0]", "users[0].addresses[1].street" * Based on Go's getValueByPath */ export declare function getValueByPath(data: Record<string, any> | undefined | null, path: string): any; export declare function isNumber(value: any): boolean;