mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
style(IntroSort.js): let to const
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user