Home
Using Smart NgRX
Demo Walkthrough
API
@smarttools/smart-ngrx / Function

mergeVirtualArrays

Merges the new array into the existing array

Presentation

function mergeVirtualArrays(
  feature: string,
  entity: string,
  newArray: VirtualArrayContents,
  existingArray: VirtualArrayContents,
): VirtualArrayContents;

Returns

VirtualArrayContents -

the merged array

Parameters

NameTypeDescription
feature
string

the name of the feature the arrays are pointing to

entity
string

the name of the entity the arrays are pointing to

newArray
VirtualArrayContents

the new array

existingArray
VirtualArrayContents

the existing array