I have a number say 165
I have an array with numbers in it. Like this:
[2, 42, 82, 122, 162, 202, 242, 282, 322, 362]
I want that the number I've got changes to the nearest, but higher number of the array.
For example I get 165 it should go tot 202
javascript arrays
See Question&Answers more detail:os