MCPcopy Create free account
hub / github.com/zxlie/FeHelper / parseValue

Function parseValue

apps/excel2json/index.js:24–29  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

22
23// 自动识别数字类型
24function parseValue(val) {
25 if (/^-?\d+(\.\d+)?$/.test(val)) {
26 return Number(val);
27 }
28 return val;
29}
30
31// 解析CSV文本为JSON
32function csvToJson(csv) {

Callers 3

csvToJsonFunction · 0.85
tsvToJsonFunction · 0.85
index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected