CodeWars-6-kyu-Soluitions/Duplicate Arguments At Master - GitHub

Skip to content Dismiss alert {{ message }} / CodeWars-6-kyu-Soluitions Public
  • Notifications You must be signed in to change notification settings
  • Fork 63
  • Star 159
  • Code
  • Issues
  • Pull requests
  • Actions
  • Projects
  • Security
  • Insights
Additional navigation options

Files

 master

Breadcrumbs

  1. CodeWars-6-kyu-Soluitions
Duplicate ArgumentsBlameBlame

Latest commit

 

History

History16 lines (12 loc) · 553 Bytes master
  1. CodeWars-6-kyu-Soluitions
Duplicate ArgumentsTop

File metadata and controls

  • Code
  • Blame
16 lines (12 loc) · 553 BytesRaw12345678910111213141516/*Description:Complete the solution so that it returns true if it contains any duplicate argument values. Any number of arguments may be passed into the function. The solution should implement the most optimal algorithm possible. The array values passed in will only be strings or numbers. The only valid return values are true and false. Examples: solution(1, 2, 3) --> falsesolution(1, 2, 3, 2) --> truesolution('1', '2', '3', '2') --> true*/ function solution(...arr){ return [...new Set(arr)].length!=arr.length} You can’t perform that action at this time.

Tag » Codewars-6-kyu Solutions Github