10 lines
369 B
TypeScript
10 lines
369 B
TypeScript
/**
|
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent.
|
|
*
|
|
* @private
|
|
* @param {Object} object The object to modify.
|
|
* @param {string} key The key of the property to assign.
|
|
* @param {*} value The value to assign.
|
|
*/
|
|
declare function assignValue(object: Record<string, any>, key: string, value: any): void;
|
|
export default assignValue;
|