We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 756acc3 commit 0d143dbCopy full SHA for 0d143db
src/sorting/heapsort.js
@@ -64,6 +64,9 @@
64
* @public
65
* @module sorting/heapsort
66
* @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.
70
* @return {Array} Sorted array.
71
*/
72
return function (array, cmp) {
0 commit comments