commit 507262d2793237cce42d994ecf71e8c6b8cb658f Author: JamesTang Date: Mon Feb 17 09:44:11 2025 +0800 上传文件至 / diff --git a/test.ts b/test.ts new file mode 100644 index 0000000..9623796 --- /dev/null +++ b/test.ts @@ -0,0 +1,32 @@ + +/** + * Finish the debounce function + */ +function debounce(func: Function, wait: number): Function { + return () => {} +} + + +/** + * Finish the throttle function + */ +function throttle(fn, interval): Function { + return () => {} +} + + +/** + * Write a function that transforms the sum function into a curried function. + */ +function transformToCurry(fn: Function): Function { + return () => {} +} + +function sum(a: number, b: number, c: number): number { + return a + b + c; +} + + +/** + * When you finish the above, Please sent this file to James-Heller@Outlook.com + */ \ No newline at end of file