mirror of
https://github.com/github/codeql.git
synced 2026-07-11 22:45:33 +02:00
10 lines
160 B
JavaScript
10 lines
160 B
JavaScript
function f(x) {
|
|
switch (x.type) {
|
|
case 'String':
|
|
var value = x.value;
|
|
return +value.trim();
|
|
case 'Integer':
|
|
var value = x.value;
|
|
return value%2;
|
|
}
|
|
} |