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

Function getPow

src/traces/surface/convert.js:163–171  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

161];
162
163function getPow(a, b) {
164 if(a < b) return 0;
165 var n = 0;
166 while(Math.floor(a % b) === 0) {
167 a /= b;
168 n++;
169 }
170 return n;
171}
172
173function getFactors(a) {
174 var powers = [];

Callers 1

getFactorsFunction · 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…