This is a re-created debounce version with less codes in ES6 built with Rollup.
npm install easy-debounce
or
yarn add easy-debounce
<script src="https://unpkg.com/[email protected]/dist/easyDebounce.umd.js"></script>
import debounce from 'easy-debounce'
const debounce = require('easy-debounce')
var debounce = window.easyDebounce;
MIT