SyntaxFix
Write A Post
Hire A Developer
Questions
Try like Below
var Boolify = require('node-boolify').Boolify; if (!Boolify(val)) { //your instruction }
Refer node-boolify