Utils / Full Stack / merge
Function: merge()
ts
function merge<T>(
root,
others,
matcher): readonly T[];Given two lists of the same type, iterate the first list and replace items matched by the matcher func in the first place.
Type Parameters
| Type Parameter |
|---|
|
Parameters
| Parameter | Type |
|---|---|
| readonly |
| readonly |
| ( |
Returns
readonly T[]