isContainClass = (element, className) => {
    if (!element)
        throw Error('element could not be empty!');
    
    if (!className)
        throw Error('className could not be empty!');
    
    if (Array.isArray(className))
        return className.some(currify(
            isContainClass,
            element,
        ));
    
    const {classList} = element;
    
    return classList.contains(className);
}
check class of element

@param element
@param className