mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
8 lines
182 B
JavaScript
8 lines
182 B
JavaScript
exports.checkOne = function(x) {
|
|
if (!x) throw new Error();
|
|
};
|
|
|
|
var checkList = exports.checkList = function(xs) {
|
|
for (var i=0; i<xs.length; ++i)
|
|
exports.checkOne(xs[i]);
|
|
}; |