Object
shallowMergeAll

Shallow merges objects and concatenates the array.

Syntax

import { shallowMergeAll } from '@opentf/std';
 
shallowMergeAll(obj1, ...objN);

Immutable: This does not mutate the given arrays or objects.

Examples

const a = [1];
const b = [2];
const c = [3];
shallowMergeAll(a, b, c); //=> [1, 2, 3]

Try