Guest User

Untitled

a guest
Oct 23rd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. /*
  2. * Get the next number in array
  3. * @param value The needle
  4. * @param array The haystack
  5. */
  6. function getNextHighestIndex( value, array ) {
  7. var i = array.length;
  8. while (array[--i] > value);
  9. return ++i;
  10. }
Add Comment
Please, Sign In to add comment