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

Function booleanType

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

Source from the content-addressed store, hash-verified

189 }
190}
191function booleanType(item) {
192 var trimmed = item.trim();
193 return !(trimmed.length === 5 && trimmed.toLowerCase() === "false");
194}
195function jsonType(item) {
196 try {
197 return JSON.parse(item);

Callers 1

dynamicTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected