Supposedly I have an object called cache, and I’d like to have cache.a, cache.b, cache.c, …, literally every cache.whatever to use a predefined value VALUE as default, before I explicitly set them to something like cache.a = 'FOOBAR'. Is there anyway to achieve this?
Supposedly I have an object called cache , and I’d like to have cache.a
Share
You can do this like
Edited:
You can use it like…