/** * * Booler can convert any value to Boolean type. * * @author Samob Chea * @param {*} val Value to parse. */ const booler = (val) => { return val == 't' || val == 'true' || val == 1; } // export module within function name `booler`. module.exports = booler;