Guest User

Untitled

a guest
Jun 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function solution(){
  2. const numberArray = Array.prototype.slice.call(arguments);
  3.  
  4. for(let i = 0; i < numberArray.length; i++) {
  5. for(let j = i + 1; j < numberArray.length; j++) {
  6. if(numberArray[j] === numberArray[i]) {
  7. return true;
  8. }
  9. }
  10. }
  11. return false;
  12.  
  13. }
Add Comment
Please, Sign In to add comment