Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dresende/node-orm2
/ queryParamCast
Function
queryParamCast
lib/ORM.js:448–460 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
446
}
447
448
function
queryParamCast (val) {
449
if
(typeof val ==
'string'
) {
450
switch (val) {
451
case
'1'
:
452
case
'true'
:
453
return
true;
454
case
'0'
:
455
case
'false'
:
456
return
false;
457
}
458
}
459
return
val;
460
}
Callers
1
ORM.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected