MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / findLastKey

Function findLastKey

MathBox/mathbox-bundle.js:37108–37118  ·  view source on GitHub ↗

* This method is like `_.findKey` except that it iterates over elements * of a `collection` in the opposite order. * * If a property name is provided for `callback` the created "_.pluck" style * callback will return the property value of the given element. * * If an obj

(object, callback, thisArg)

Source from the content-addressed store, hash-verified

37106 * // => 'pebbles'
37107 */
37108 function findLastKey(object, callback, thisArg) {
37109 var result;
37110 callback = lodash.createCallback(callback, thisArg, 3);
37111 forOwnRight(object, function(value, key, object) {
37112 if (callback(value, key, object)) {
37113 result = key;
37114 return false;
37115 }
37116 });
37117 return result;
37118 }
37119
37120 /**
37121 * Iterates over own and inherited enumerable properties of an object,

Callers

nothing calls this directly

Calls 2

forOwnRightFunction · 0.85
callbackFunction · 0.70

Tested by

no test coverage detected