mirror of
https://github.com/github/codeql.git
synced 2025-12-26 05:36:32 +01: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;
|
|
}
|
|
} |