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

Function smallestDivisor

src/traces/surface/convert.js:184–194  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

182}
183
184function smallestDivisor(a) {
185 var A = getFactors(a);
186 var result = a;
187 for(var i = 0; i < shortPrimes.length; i++) {
188 if(A[i] > 0) {
189 result = shortPrimes[i];
190 break;
191 }
192 }
193 return result;
194}
195
196function leastCommonMultiple(a, b) {
197 if(a < 1 || b < 1) return undefined;

Callers 1

convert.jsFile · 0.85

Calls 1

getFactorsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…