forked from sombochea/booler
updated version and name
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user