_lookupByKey = (table, key, value, last)=>_lookup(table, value, last ? (index)=>{
        const ti = table[index][key];
        return ti < value || ti === value && table[index + 1][key] === value;
    } : (index)=>table[index][key] < value)
Binary search
@param table - the table search. must be sorted!
@param key - property name for the value in each entry
@param value - value to find
@param last - lookup last index
@private