The Symbol.search
well-known symbol specifies the method that returns the index within a string that matches the regular expression. This function is called by the String.prototype.search()
method.
For more information, see RegExp.prototype[@@search]()
and String.prototype.search()
.