Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
}
191
function
booleanType(item) {
192
var
trimmed = item.trim();
193
return
!(trimmed.length === 5 && trimmed.toLowerCase() ===
"false"
);
194
}
195
function
jsonType(item) {
196
try {
197
return
JSON.parse(item);
Callers
1
dynamicType
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected