Skip to main content

combineRequestSlots

Stentor API Reference


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​

RequestSlotMap

The current slots

incoming​

RequestSlotMap

The new incoming slots

Returns​

RequestSlotMap

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.