MCPcopy Create free account
hub / github.com/codemistic/Web-Development / getIndex

Function getIndex

Facemash/js_fm.js:219–225  ·  view source on GitHub ↗
(rnkList, item, categ)

Source from the content-addressed store, hash-verified

217
218// getting the required index by loadNxt()
219function getIndex(rnkList, item, categ) {
220 for (let i = 0; i < rnkLen[categ]; i++) {
221 if (rnkList[i][categ] === item)
222 return i;
223 }
224 return -1; // item absent
225}
226
227// function(){loading the next set}
228function loadNxt(clicked = img1, other = img2) {

Callers 1

loadNxtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected