style(IntroSort.js): let to const

This commit is contained in:
Rak Laptudirm
2021-05-21 11:57:24 +05:30
parent 8b7c5fdc57
commit c62d169c21

View File

@ -45,7 +45,7 @@ function introsort (array, compare) {
* @param {Object} obj
* @returns {String} String representation of given object
*/
var toString = function (obj) {
const toString = function (obj) {
if (obj === null) return 'null'
if (typeof obj === 'boolean' || typeof obj === 'number') {
return obj.toString()