- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
16 lines
312 B
JavaScript
16 lines
312 B
JavaScript
function callAll(...fns) {
|
|
return function mergedFn(...args) {
|
|
fns.forEach((fn) => fn?.(...args));
|
|
};
|
|
}
|
|
function callAllHandlers(...fns) {
|
|
return function func(event) {
|
|
fns.some((fn) => {
|
|
fn?.(event);
|
|
return event?.defaultPrevented;
|
|
});
|
|
};
|
|
}
|
|
|
|
export { callAll, callAllHandlers };
|