UNPKG

houseform

Version:

Simple to use React forms, where your validation and UI code live together in harmony.

17 lines (16 loc) 587 B
/** * Originally adapted from Lodash's `toPath` function. Imported and modified to reduce bundle size. * @see https://github.com/lodash/lodash/blob/4.17.15/lodash.js#L6735-L6744 * * Converts `string` to a property path array. * * @private * @param {string} str The string to convert. * @returns {Array} Returns the property path array. */ export declare const stringToPath: (str: string) => string[]; /** * Mutates the `obj` */ export declare const fillPath: (obj: object, path: string, value: any) => object; export declare const getPath: (obj: object, path: string) => any;