updated version and name

This commit is contained in:
2019-10-31 09:45:34 +07:00
parent 7c8e9d81be
commit 6fe8e88d8d
3 changed files with 5 additions and 3 deletions

View File

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