export function debounce(func, wait) {
    let timeout;
    return (...args) => {
        const later = () => {
            timeout = null;
            func(...args);
        };
        clearTimeout(timeout || undefined);
        timeout = window.setTimeout(later, wait);
    };
}
export default debounce;
//# sourceMappingURL=debounce.js.map