上传文件至 /
This commit is contained in:
commit
507262d279
32
test.ts
Normal file
32
test.ts
Normal file
@ -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
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user