Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Get the next number in array
- * @param value The needle
- * @param array The haystack
- */
- function getNextHighestIndex( value, array ) {
- var i = array.length;
- while (array[--i] > value);
- return ++i;
- }
Add Comment
Please, Sign In to add comment