MCPcopy Create free account
hub / github.com/Keyang/node-csvtojson / numberType

Function numberType

v2/lineToJson.js:163–169  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

161 }
162}
163function numberType(item) {
164 var rtn = parseFloat(item);
165 if (isNaN(rtn)) {
166 return item;
167 }
168 return rtn;
169}
170function stringType(item) {
171 return item.toString();
172}

Callers 1

dynamicTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected