UNPKG

@zendesk/react-measure-timing-hooks

Version:

react hooks for measuring time to interactive and time to render of components

13 lines 367 B
"use strict"; 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