Skip to main content

Function: getInletsToUpdate()

getInletsToUpdate(newInlets, currentInlets): object

Defined in: utils/utils.ts:548

compares two lists of values and returns a list of the elements from newInlets that need to be added to the current list, as well as the elements in currentInlets that no longer need to exist.

Parameters

newInlets

OperationInlet[]

currentInlets

OperationInlet[]

Returns

object

the list of elements that needed to be added to or removed from current Inlets to make it match the list in newInlets

toadd

toadd: OperationInlet[]

toremove

toremove: OperationInlet[]