UNPKG

use-breakpoints-width

Version:

React hook that shows the current breakpoint name and screen width.

1 lines 393 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports["default"]=void 0;function debounce(a,b){var c=null;return function(){for(var d=this,e=arguments.length,f=Array(e),g=0;g<e;g++)f[g]=arguments[g];c?(clearTimeout(c),c=setTimeout(function(){a.apply(d,f),c=null},b)):(a.apply(this,f),c=setTimeout(function(){c=null},b))}}var _default=debounce;exports["default"]=_default;