Debounces function so it is only called after n milliseconds without it not being called
Utils.debounce(myFunction() {}, 100);
Throttle function so it is only called once every n milliseconds
Utils.throttle(myFunction() {}, 100);
GitHub Repository
If using the Build Service, add o-utils@^1.1.1 to your script tag.
o-utils@^1.1.1
If running a Manual Build, run npm install "o-utils@^1.1.1".
npm install "o-utils@^1.1.1"
o-utils is maintained directly by the Origami team. If you have any questions about o-utils or Origami in general, we are happy to help. 😊
Slack: #ft-origamiEmail: origami.support@ft.com
To report a bug or request features please create an issue on Github. For support or general feedback please get in touch 😊