Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solution(){
- const numberArray = Array.prototype.slice.call(arguments);
- for(let i = 0; i < numberArray.length; i++) {
- for(let j = i + 1; j < numberArray.length; j++) {
- if(numberArray[j] === numberArray[i]) {
- return true;
- }
- }
- }
- return false;
- }
Add Comment
Please, Sign In to add comment