mapbox templates

using get is easy for objects, but I need to know how to apply it to a function object.  Tried Object.defineProperty() but had ran into prototype/closure juju.