Nodejs Number to Boolean Convert toBoolean()

Here you can find the source of toBoolean()

Method Source Code

Number.prototype.toBoolean = function(){
  return Boolean(this);
};