mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-13 13:08:41 -05:00
Changed parse boolean functionality to allow for undefined"
This commit is contained in:
@@ -6,10 +6,8 @@
|
||||
const ParseBoolean = (value) => {
|
||||
if (value === true || value === "true") {
|
||||
return true;
|
||||
} else if (value === false || value === "false") {
|
||||
return false;
|
||||
}
|
||||
throw new Error("Invalid boolean value");
|
||||
return false;
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
||||
Reference in New Issue
Block a user