MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / indexOfSmallestElement

Function indexOfSmallestElement

lib/workers.js:162–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162const indexOfSmallestElement = groups => {
163 let i = 0
164 for (let j = 1; j < groups.length; j++) {
165 if (groups[j - 1].length > groups[j].length) {
166 i = j
167 }
168 }
169 return i
170}
171
172const convertToMochaTests = testGroup => {
173 const group = []

Callers 1

createGroupsOfSuitesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected