I encountered some code that appears to employ an unknown operator in the form of two exclamation marks, as in:!!. Could you kindly explain what this operator does?
This occurred to me in the following context:
this.vertical = vertical !== undefined ? !!vertical : this.vertical;