src/shared/util/object.service.ts
Showing 1 of 1 total issue
Function bubbleSort
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
Open
bubbleSort(items: Array<any>, column?: string): Array<any> { const length = items.length; for (let i = 0; i < length; i++) { // Number of passes for (let j = 0; j < (length - i - 1); j++) {
- Read upRead up