MCPcopy Index your code
hub / github.com/plotly/plotly.js / toArrayOfArrays

Function toArrayOfArrays

test/jasmine/tests/select_test.js:255–271  ·  view source on GitHub ↗
(expected)

Source from the content-addressed store, hash-verified

253 }
254
255 function toArrayOfArrays(expected) {
256 var isArrayInArray, i;
257
258 if(Array.isArray(expected)) {
259 isArrayInArray = false;
260 for(i = 0; i < expected.length; i++) {
261 if(Array.isArray(expected[i])) {
262 isArrayInArray = true;
263 break;
264 }
265 }
266
267 return isArrayInArray ? expected : [expected];
268 } else {
269 return [[expected]];
270 }
271 }
272 }
273
274 function assertSelectionCleared() {

Callers 1

assertSelectedPointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…