Skip to content

Commit 8548ef1

Browse files
committed
docs: modified documentation
1 parent 72def41 commit 8548ef1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Cache/Memoize.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
/**
2-
* Memoize
3-
*
2+
* @function memoize
3+
* @description ->
44
* From [Wikipedia](https://en.wikipedia.org/wiki/Memoization),
55
* memoization is an optimization technique
66
* used primarily to speed up computer programs,
77
* by storing the results of expensive function calls
88
* and returning the cached result when the same inputs occur again
9-
*
109
* This function is a first class objects,
1110
* which lets us use it as [Higher-Order Function](https://eloquentjavascript.net/05_higher_order.html)
1211
* and return another function
13-
*
1412
* @param {Function} func Original function
1513
* @returns {Function} Memoized function
1614
*/

0 commit comments

Comments
 (0)