Cloud API Overview > @adpt/cloud > mergeEnvPairs
mergeEnvPairs() function
Combine multiple Environment objects into a single array of EnvPair objects. Returns undefined
if there are no Environment
objects provided.
Signature:
export declare function mergeEnvPairs(...envs: (Environment | undefined)[]): EnvPairs | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
envs | ( Environment | undefined)[] |
Returns:
EnvPairs
| 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.