Create New Item
×
Item Type
File
Folder
Item Name
×
Search file in folder and subfolders...
File Manager
/
sommilito-bank2
/
splide-4.1.3
/
src
/
js
/
utils
/
dom
/
removeAttribute
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import { forEach } from '../../array'; /** * Removes attributes from the element. * * @param elms - An element or elements. * @param attrs - An attribute or attributes to remove. */ export function removeAttribute( elms: Element | Element[], attrs: string | string[] ): void { forEach( elms, elm => { forEach( attrs, attr => { elm && elm.removeAttribute( attr ); } ); } ); }