Skip to content

ouadie-lahdioui/duplicate-arguments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

JAVASCRIPT KATA : Duplicate Arguments !

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.

solution(1, 2, 3) // returns false
solution(1, 2, 3, 2) // returns true
solution('1', '2', '3', '2') // returns true

The array values passed in will only be strings or numbers. The only valid return values are true and false.

Solution : solution.js

Source : codewars

About

Duplicate arguments javascript kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published