goja-core/src/main/java/goja/core/kits/lang/Wildcard.java
public static boolean equalsOrMatch(String string, String pattern) {
        return string.equals(pattern) || match(string, pattern, 0, 0);
    }
public static boolean equalsOrMatch(String string, String pattern) {
        return string.equals(pattern) || match(string, pattern, 0, 0);
    }
Checks if two strings are equals or if they {@link #match(String, String)}.
Useful for cases when matching a lot of equal strings and speed is important.