* Remove a class from the element
(className: string | string[])
| 296 | * Remove a class from the element |
| 297 | */ |
| 298 | removeClass(className: string | string[]): this { |
| 299 | if (Array.isArray(className)) { |
| 300 | this.native.classList.remove(...className); |
| 301 | } else { |
| 302 | if (className.includes(" ")) { |
| 303 | return this.removeClass( |
| 304 | className.split(" ").filter((cn) => cn.length > 0), |
| 305 | ); |
| 306 | } |
| 307 | this.native.classList.remove(className); |
| 308 | } |
| 309 | return this; |
| 310 | } |
| 311 | |
| 312 | /** |
| 313 | * Check if the element has a class |
no test coverage detected