UNPKG

easy-toggle-state

Version:

A tiny JavaScript library to easily toggle the state of any HTML element in any contexts, and create UI components in no time.

7 lines (6 loc) 231 B
/** * Add a namespace for element properties. * @param {string} property - The property aadded on any element * @returns {string} - The property with the namespace */ export default (property) => `easyToggleState_${property}`;