@cookbook/dot-notation
Version:
Object readings and complex transformations using dot notation syntax.
12 lines (11 loc) • 376 B
TypeScript
/**
* Get initial key from dot notation path
* @description returns first key defined in dot notation and the remaining path
* @param {string} value
* @returns {[string, string | undefined]} - returns key, remaining dot notation path and isArray,
*/
declare const getKey: {
(value: string): [string, string | undefined];
regexp: RegExp;
};
export default getKey;