UNPKG

@grafana/ui

Version:
12 lines (10 loc) 351 B
function reverseMap(arr, callbackfn) { const reversedAndMapped = new Array(arr.length); for (let i = 0; i < arr.length; i++) { const reverseIndex = arr.length - 1 - i; reversedAndMapped[i] = callbackfn(arr[reverseIndex], reverseIndex, arr); } return reversedAndMapped; } export { reverseMap }; //# sourceMappingURL=reverseMap.mjs.map