Skip to content

Commit d11c94d

Browse files
naringstsounmind
andauthored
Update contains-duplicate/naringst.js
Co-authored-by: Evan Suhyeong Lee <[email protected]>
1 parent df1514a commit d11c94d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

contains-duplicate/naringst.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,5 @@ var containsDuplicate = function (nums) {
2020
const arrToSet = new Set(nums);
2121
const setLength = arrToSet.size;
2222

23-
if (arrLength !== setLength) {
24-
return true;
25-
}
26-
return false;
23+
return arrLength !== setLength;
2724
};

0 commit comments

Comments
 (0)