TEST/test.ts
2025-02-17 09:44:11 +08:00

32 lines
595 B
TypeScript

/**
* 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
*/