MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / findIndex

Function findIndex

libs/datatables-binding-0.18/datatables.js:1171–1176  ·  view source on GitHub ↗
(ij, sel)

Source from the content-addressed store, hash-verified

1169 if (selected !== null) selected3 = selected;
1170 if (selectable !== null && typeof selectable !== 'boolean') selectable3 = selectable;
1171 var findIndex = function(ij, sel) {
1172 for (var i = 0; i < sel.length; i++) {
1173 if (ij[0] === sel[i][0] && ij[1] === sel[i][1]) return i;
1174 }
1175 return -1;
1176 }
1177 // Change selected3's value based on selectable3, then refresh the cell state
1178 var onlyKeepSelectableCells = function() {
1179 if (selDisable) { // users can't select; useful when only want backend select

Callers 3

onlyKeepSelectableCellsFunction · 0.85
selectCellsFunction · 0.85
datatables.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected