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

Function insertIfNewLevel

src/traces/surface/convert.js:373–382  ·  view source on GitHub ↗
(arr, newValue)

Source from the content-addressed store, hash-verified

371};
372
373function insertIfNewLevel(arr, newValue) {
374 var found = false;
375 for(var k = 0; k < arr.length; k++) {
376 if(newValue === arr[k]) {
377 found = true;
378 break;
379 }
380 }
381 if(found === false) arr.push(newValue);
382}
383
384proto.setContourLevels = function() {
385 var newLevels = [[], [], []];

Callers 1

convert.jsFile · 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…