not
Defines a custom operator function for the String class. This unary not
operator (!
) is invoked on a String instance and performs a custom action defined by the text
function.
The implementation of this function uses the this
keyword to reference the current String the operator is called on and passes it to the text
function.
This is typically used to enhance the behavior or further abstract operations on String objects in a concise and intuitive manner.