* 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)
| 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 |
no test coverage detected