@zendesk/retrace
Version:
define and capture Product Operation Traces along with computed metrics with an optional friendly React beacon API
13 lines • 367 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findLast = findLast;
function findLast(array, predicate) {
for (let i = array.length - 1; i >= 0; i--) {
const value = array[i];
if (predicate(value, i, array)) {
return value;
}
}
return undefined;
}
//# sourceMappingURL=utils.js.map