resize-start-end
resize-start-end is a small utility for detecting the start and/or end of a series of window resize events.
Installation
yarn
yarn add resize-start-end
npm
npm i resize-start-end -S
Usage
// ESM; // or CommonJSconst resizeStartEnd = ; // `debounceWaitTime` is a number in milliseconds that is passed to// lodash.debounce. Defaults to 200.const resize = ; // Begin listening for given type, 'start' or 'end'.resize;resize; // Remove listener for given type and handlerresize;resize; // Check if the window is currently being resizedresize; // returns a boolean