This can be done to create very targeted comparisons in extreme hot-path scenarios
where the standard methods are not performant enough, but can also be used to provide
support for legacy environments that do not support expected features like
RegExp.prototype.flags out of the box.
Create a custom equality comparison method.
This can be done to create very targeted comparisons in extreme hot-path scenarios where the standard methods are not performant enough, but can also be used to provide support for legacy environments that do not support expected features like
RegExp.prototype.flags
out of the box.