%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/node_modules/@popperjs/core/lib/utils/
Upload File :
Create Path :
Current File : /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