How can I check if an environment variable is set in node js?
How can I check if an environment variable is set in node js?
To check I use:if(process.env.CHECKEDKEY) {
// It's set.
}
else {
// Don't set.
}
Scientific Algorithms and Analytics
if(process.env.CHECKEDKEY) {
// It's set.
}
else {
// Don't set.
}