Sha256: aca6ba7a0d2ec4a55278f3519d34d9e77f57c47e4b09f493b4c78bdb2d597898

Contents?: true

Size: 143 Bytes

Versions: 7

Compression:

Stored size: 143 Bytes

Contents

export const debounce = (func, wait) => {
  let timeout

  return () => {
    clearTimeout(timeout)
    timeout = setTimeout(func, wait)
  }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/javascript/solidus_admin/utils.js
solidus_admin-0.3.1 app/javascript/solidus_admin/utils.js
solidus_admin-0.3.0 app/javascript/solidus_admin/utils.js
solidus_admin-0.2.0 app/javascript/solidus_admin/utils.js
solidus_admin-0.1.0 app/javascript/solidus_admin/utils.js
solidus_admin-0.0.2 app/javascript/solidus_admin/utils.js
solidus_admin-0.0.1 app/javascript/solidus_admin/utils.js