判断数组中是否有重复的数
var containsDuplicate = function(nums) { let tmpSet = new Set(nums) let newNums = Array.from(tmpSet) if(nums.length == newNums.length) { return false } else { return tr...