Added missing file.

This commit is contained in:
orangemug 2018-06-03 17:37:54 +01:00
parent 6cdb56d13f
commit ffce8e3ba5

17
src/libs/query-util.js Normal file
View file

@ -0,0 +1,17 @@
function asBool(queryObj, key) {
if(queryObj.hasOwnProperty(key)) {
if(queryObj[key].match(/^false|0$/)) {
return false;
}
else {
return true;
}
}
else {
return false;
}
}
module.exports = {
asBool
}