@dcodegroup-au/dsg-vue
Version:
Front-end Vue/Tailwind DSG for UntitledUI.
32 lines (31 loc) • 1.03 kB
TypeScript
/**
* ----------------------------------------------------------
* oQuery: Object Query
* ----------------------------------------------------------
* Recursive function to query object based on key using dot
* notation.
*
* @param object - Target object to query
* @param key - Key to query object
* @returns {any} - Value of key in object
*
* ----------------------------------------------------------
*/
/**
* ----------------------------------------------------------
* data_get
* ----------------------------------------------------------
* Get an item from an object using "dot" notation. Ported
* from Laravel's data_get helper function.
*
* @param object $target
* @param string $key
* @param any defaultValue
* @return any
*
* ----------------------------------------------------------
*/
export declare const data_get: (object: {
[key: string]: any;
} | undefined, key: string, defaultValue?: any) => any;
export declare const deepEqual: (obj1: any, obj2: any) => boolean;