duplicate-arguments

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i duplicate-arguments

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • ouadie