MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / property

Function property

MathBox/mathbox-bundle.js:41170–41174  ·  view source on GitHub ↗

* Creates a "_.pluck" style function, which returns the `key` value of a * given object. * * @static * @memberOf _ * @category Utilities * @param {string} key The name of the property to retrieve. * @returns {Function} Returns the new function. * @example

(key)

Source from the content-addressed store, hash-verified

41168 * // => [{ 'name': 'barney', 'age': 36 }, { 'name': 'fred', 'age': 40 }]
41169 */
41170 function property(key) {
41171 return function(object) {
41172 return object[key];
41173 };
41174 }
41175
41176 /**
41177 * Produces a random number between `min` and `max` (inclusive). If only one

Callers 1

createCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected