Nodejs Boolean Toggle toggle()

Here you can find the source of toggle()

Method Source Code

Boolean.prototype.toggle = function() {
   return !this.valueOf();
};