📅  最后修改于: 2022-03-11 15:02:44.153000             🧑  作者: Mango
function parseBool(value) {
if (typeof value === "string") {
value = value.toLowerCase();
if (value === "true" || value === "false") {
return value === "true";
}
}
return; // returns undefined
}