UNPKG

simple-bound

Version:

A simple and customizable reactive data-binding library.

21 lines (20 loc) 758 B
/** * fromPath * Returns a value from an object by a given path (usually string). * * @param obj an object to get a value from. * @param path to get a value by. * @returns a value from a given path. If a path is invalid - returns undefined. */ export declare function fromPath(obj: any, path: string | number): any; /** * assignToPath * Assigns a value to an object by a given path (usually string). * If the path is invalid, silently creates the required path and assigns a value * * @param obj an object to get a value from. * @param path to get a value by. * @param value a value to assign. */ export declare function assignToPath(obj: any, path: string | number, value: any): any; export declare const hasProxy = true;