mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
13 lines
205 B
JavaScript
13 lines
205 B
JavaScript
function isEmpty(xs) {
|
|
for(var i=0; i<xs.length; ++i)
|
|
return false;
|
|
return true;
|
|
}
|
|
|
|
function desk(xs) {
|
|
for(var i=0; i<xs.length; ++i)
|
|
if(xs[i] < xs[0])
|
|
return "yellow";
|
|
return [];
|
|
}
|