Object on which to add or modify the property.
Key of the property.
Function to compute the property value.
Is the property listed in Object.keys. (Optional: default to false)
warinternal 20161128
defineCachedProperty(Creep.prototype, "bodyParts", (c) => _.countBy(c.body, part => part.type))
Generated using TypeDoc
Object.defineProperty where
get
is cached after first call.