11 lines
347 B
TypeScript
11 lines
347 B
TypeScript
|
/**
|
||
|
* Checks if `value` is a property name and not a property path.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {*} value The value to check.
|
||
|
* @param {Object} [object] The object to query keys on.
|
||
|
* @returns {boolean} Returns `true` if `value` is a property name, else `false`.
|
||
|
*/
|
||
|
declare function isKey(value: any, object: any): boolean;
|
||
|
export default isKey;
|