MCPcopy Create free account
hub / github.com/neplextech/vectorizer / parseNumber

Function parseNumber

cli/index.mjs:348–354  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

346}
347
348function parseNumber(value) {
349 const parsed = Number.parseFloat(value);
350 if (!Number.isFinite(parsed)) {
351 throw new Error(`Expected number, received '${value}'`);
352 }
353 return parsed;
354}
355
356function collect(value, previous = []) {
357 previous.push(value);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…