nl_tokens: compare search element with current element < 0 search < current 0 equals > 0 search > current
pl_tokens: function ( search , array , currentIdx ) { // first check if this is our element // this is our element if the search value is: if ( search < array [ currentIdx ] . range ) { // we can have a match or search in the left half if ( currentIdx > 0 ) { if ( <mask> >= array [ currentIdx - 1 ] . range ) { return 0 ; } else { // go left return - 1 ; } } else { return 0 ; } } else { // we must search in the next half return 1 ; } }