rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
74 lines (35 loc) • 1.02 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [dictionaryOverwrite](./rc-js-util.dictionaryoverwrite.md)
## dictionaryOverwrite() function
Modifies an object to include the keys and values of another.
**Signature:**
```typescript
export declare function dictionaryOverwrite<TBase extends TExtension, TExtension extends object>(base: TBase, extension: TExtension): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
base
</td><td>
TBase
</td><td>
The object to be modified, must be a superset of extension.
</td></tr>
<tr><td>
extension
</td><td>
TExtension
</td><td>
The object to be applied to `base`<!-- -->.
</td></tr>
</tbody></table>
**Returns:**
void
## Remarks
See [dictionaryOverwrite()](./rc-js-util.dictionaryoverwrite.md)<!-- -->.