source: node_modules/es-toolkit/dist/compat/function/defer.mjs

Last change on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago

Added visualizations

  • Property mode set to 100644
File size: 190 bytes
RevLine 
[a762898]1function defer(func, ...args) {
2 if (typeof func !== 'function') {
3 throw new TypeError('Expected a function');
4 }
5 return setTimeout(func, 1, ...args);
6}
7
8export { defer };
Note: See TracBrowser for help on using the repository browser.