combineRequestSlots
Stentor API Reference / stentor-utils/src / combineRequestSlots
Function: combineRequestSlots()
combineRequestSlots(
current,incoming):RequestSlotMap
Defined in: packages/stentor-utils/src/request/combineRequestSlots.ts:16
Combines two slot maps.
Parameters​
current​
The current slots
incoming​
The new incoming slots
Returns​
Remarks​
The incoming will only override the current if the value doesn't exist on the current and exists on the incoming. This is helpful for slot filling.
If both are undefined, an empty object is returned.