MCPcopy Create free account
hub / github.com/microsoft/SandDance / checkNumber

Function checkNumber

docs/app/js/sanddance-app.js:69554–69557  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

69552 return true;
69553}
69554function checkNumber(value) {
69555 if (!Number.isFinite(value)) throw new Error("Invalid number ".concat(value));
69556 return value;
69557}
69558function checkVector(v, length, callerName = "") {
69559 if ((0, _common.config).debug && !validateVector(v, length)) throw new Error("math.gl: ".concat(callerName, " some fields set to invalid numbers'"));
69560 return v;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected