MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / result

Function result

MathBox/mathbox-bundle.js:41261–41266  ·  view source on GitHub ↗

* Resolves the value of property `key` on `object`. If `key` is a function * it will be invoked with the `this` binding of `object` and its result returned, * else the property value is returned. If `object` is falsey then `undefined` * is returned. * * @static * @membe

(object, key)

Source from the content-addressed store, hash-verified

41259 * // => 'nonsense'
41260 */
41261 function result(object, key) {
41262 if (object) {
41263 var value = object[key];
41264 return isFunction(value) ? object[key]() : value;
41265 }
41266 }
41267
41268 /**
41269 * A micro-templating method that handles arbitrary delimiters, preserves

Callers 1

templateFunction · 0.70

Calls 1

isFunctionFunction · 0.70

Tested by

no test coverage detected