src/index.js
function(collection, key, ip) {
    if (!collection) {
        collection = {};
    }

    if (!collection[key]) {
        collection[key] = [];
    }

    collection[key].push(ip);
}
function(collection, key, ip) {
    if (!collection) {
        collection = {};
    }

    if (!collection[key]) {
        collection[key] = [];
    }

    collection[key].push(ip);
}
function ( collection , key , ip ) { if ( ! collection ) { collection = { } ; } if ( ! collection [ key ] ) { collection [ key ] = [ ] ; } collection [ key ] . push ( ip ) ; }
Finds the appropriate block or
bucket for the given IP to be
inserted in. Another way
@param key
@param ip
Finds the appropriate block or bucket for the given IP to be inserted in . Another way