Skip to content

Commit

Permalink
fix doctype in utils file added default value in sort method
Browse files Browse the repository at this point in the history
  • Loading branch information
suryapratapsinghsuryavanshi committed Jan 22, 2022
1 parent 05c1055 commit 2f99084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ let railwayTimeConversion = (timeString) => {
/**
* Sort the list of values, partition in place method O(nlogn).
* @param {Number[]} arr list of values.
* @param {Boolean} reverse if the reverse value is true the sort in ascending order else descending.
* @param {Boolean = true} reverse if the reverse value is true the sort in ascending order else descending, default is true.
* @returns {Number[]} sorted list of values.
*/
let sort = (arr, reverse = true) => {
Expand Down

0 comments on commit 2f99084

Please sign in to comment.