lazyprop
Lazy properties for JavaScript. This allows for defining properties that are lazily created using a given function upon first access. Subsequent access to the property exposes the value created by the original function (the function is only called once):
var lazyprop = var obj = {}var answer1 = objanswer // will console.logvar answer2 = objanswer // will NOT console.log