Cloud API Overview > @adpt/cloud > mergeEnvSimple
mergeEnvSimple() function
Combine multiple Environment objects into a single EnvSimple object. Returns undefined if there are no Environment objects provided.
Signature:
export declare function mergeEnvSimple(...envs: (Environment | undefined)[]): EnvSimple | undefined;
Parameters
| Parameter | Type | Description |
|---|---|---|
| envs | (Environment | undefined)[] |
Returns:
EnvSimple| undefined
Remarks
If more than one Environment object specifies the same environment variable name, the last one present in the array of arguments takes precedence.