From 507262d2793237cce42d994ecf71e8c6b8cb658f Mon Sep 17 00:00:00 2001 From: JamesTang Date: Mon, 17 Feb 2025 09:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.ts | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test.ts 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