docs: function getClassIndex(element, className) {
    assertType(element, Node, false, 'Invalid element specified');
    assertType(className, 'string', false, `Invalid class name: ${className}`);
    let classList = element.className.split(' ');
    return classList.indexOf(className);
  }