• + 0 comments
    function getSecondLargest(nums) {
        return (Array.from(new Set(nums)).sort((a,b) => a - b).reverse())[1]
    }