mirror of
https://github.com/maputnik/editor.git
synced 2026-06-22 15:17:29 +00:00
Added missing file.
This commit is contained in:
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user