goja-core/src/main/java/goja/core/kits/reflect/ClassKit.java
public static boolean isPrimitiveArray(Class<?> clazz) {
        Preconditions.checkNotNull(clazz, "Class must not be null");
        return (clazz.isArray() && clazz.getComponentType().isPrimitive());
    }
public static boolean isPrimitiveArray(Class<?> clazz) {
        Preconditions.checkNotNull(clazz, "Class must not be null");
        return (clazz.isArray() && clazz.getComponentType().isPrimitive());
    }
Check if the given class represents an array of primitives,
i.e. boolean, byte, char, short, int, long, float, or double.

@param clazz the class to check
@return whether the given class is a primitive array class