MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / isDivisible

Function isDivisible

scripts/smoothScroll.js:749–751  ·  view source on GitHub ↗
(n, divisor)

Source from the content-addressed store, hash-verified

747 return tp;
748 }
749 function isDivisible(n, divisor) {
750 return Math.floor(n / divisor) == n / divisor;
751 }
752 function allDeltasDivisableBy(divisor) {
753 return (
754 isDivisible(deltaBuffer[0], divisor) &&

Callers 2

wheelFunction · 0.85
allDeltasDivisableByFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected