Skip to content

Commit 0d143db

Browse files
author
AndreyGeonya
committed
fix heapsort jsdoc
1 parent 756acc3 commit 0d143db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sorting/heapsort.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
* @public
6565
* @module sorting/heapsort
6666
* @param {Array} array Input array.
67+
* @param {Function} cmp Optional. A function that defines an
68+
* alternative sort order. The function should return a negative,
69+
* zero, or positive value, depending on the arguments.
6770
* @return {Array} Sorted array.
6871
*/
6972
return function (array, cmp) {

0 commit comments

Comments
 (0)