- const percentileIndexBase = (percentile / 100) * (sortedDataSet.length - 1);
- const percentileIndexInteger = Math.floor(percentileIndexBase);
- if (!isNullOrUndefined(sortedDataSet[percentileIndexInteger + 1])) {
+ const percentileIndexBase = (percentile / 100) * (sortedDataSet.length - 1)
+ const percentileIndexInteger = Math.floor(percentileIndexBase)
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
+ if (sortedDataSet[percentileIndexInteger + 1] != null) {