07-21-2023, 04:12 PM
I'm storing an object (which has several methods) into `process.env` as below:
var obj = createObject(); // returns new object
process.env.OBJ = obj;
When I access this object from other places like below, I don't see any of the methods.
var obj = process.env.OBJ;
Showing `[Object Object]`.
Why is that?
var obj = createObject(); // returns new object
process.env.OBJ = obj;
When I access this object from other places like below, I don't see any of the methods.
var obj = process.env.OBJ;
Showing `[Object Object]`.
Why is that?