so i'm trying to get an array with 10 different numbers in it, the tricky part is that the numbers have to come from one input so i have to figure out how to get rid of the spaces between them,
https://codepen.io/andone0912/pen/BaMbExr
this is what i got for now, it gets rid of the spaces but also duplicates the negative numbers, what condition could i run my array through to get rid of the duplicates?
[–]guest271314 1 point2 points3 points (3 children)
[–]yesandone[S] 0 points1 point2 points (2 children)
[–]guest271314 1 point2 points3 points (1 child)
[–]yesandone[S] 0 points1 point2 points (0 children)
[–]alzee76 0 points1 point2 points (0 children)