We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8901b1d commit f56e213Copy full SHA for f56e213
contains-duplicate/Jeehay28.js
@@ -0,0 +1,7 @@
1
+/**
2
+ * @param {number[]} nums
3
+ * @return {boolean}
4
+ */
5
+var containsDuplicate = function (nums) {
6
+ return nums.length !== new Set(nums).size;
7
+};
0 commit comments