/**
* @description return true if the current index is the last index in the loop
* @example [1,2,3].map((n, i, arr) => isLastIndexInLoop(arr, i)) // [false, false, true]
*/exportdefaultfunctionisLastIndexInLoop(arr, currentIndx) {
return arr.length === currentIndx - 1;
}