home ~ projects ~ socials

Use lodash throttle With ES Modules In Vanilla JavaScript

This is how I'm using lodash's throttle via ES modules in vanilla JS.

TODO

    These are the things to document

    install lodash cli

    build modularized files

    Split out separate page with just the function and not event data being passed thru

    show this bind for a module based of stem-mixer

    this.throttled = throttle(this.handleFaderMove.bind(this) , 1042)

0

Notes

  • You can pass event stuff through as shown in the example. That's not required
-- end of line --