Welcome to mirror list, hosted at ThFree Co, Russian Federation.
1 2 3 4 5 6 7
/* eslint-disable import/prefer-default-export */ export const addClassIfElementExists = (element, className) => { if (element) { element.classList.add(className); } };