A function that tries to retrieve an environment variable from the process.env
object and, if it succeeds, returns it as a string value, else returns undefined.
Parameters
name: string
The name of the environment variable to look for in process.env.
Returns undefined | string
A string corresponding to the environment variable's value, if any,
else undefined.
A function that tries to retrieve an environment variable from the process.env object and, if it succeeds, returns it as a
string
value, else returnsundefined
.