fixed case sensitive

This commit is contained in:
2019-10-31 09:51:04 +07:00
parent 6fe8e88d8d
commit e855852ccc
3 changed files with 6 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
*/
const booler = (val) => {
// transform to string lower case.
val = val + "".toLowerCase();
val = (val + "").toLowerCase();
return val == 't' || val == 'true' || val == 1;
}