/**
* @param {String} event name
* @param {Function} callback
* @return {Void}
*/
on(eventName, callback)
Adds a custom event listener to an instance.
const fn = (e, selected, unselected) => {
counter.value = selected.length;
};
selectable.on("end", fn);