src/lib/wordfind.js
function (locations, overlap) {
            var pruned = [];
            for (var i = 0, len = locations.length; i < len; i++) {
                if (locations[i].overlap >= overlap) {
                    pruned.push(locations[i]);
                }
            }
            return pruned;
        }
function (locations, overlap) {
            var pruned = [];
            for (var i = 0, len = locations.length; i < len; i++) {
                if (locations[i].overlap >= overlap) {
                    pruned.push(locations[i]);
                }
            }
            return pruned;
        }
function ( locations , overlap ) { var pruned = [ ] ; for ( var i = 0 , len = locations . length ; i < len ; i ++ ) { if ( locations [ i ] . overlap >= overlap ) { pruned . push ( locations [ i ] ) ; } } return pruned ; }
If overlap maximization was indicated, this function is used to prune the
list of valid locations down to the ones that contain the maximum overlap
that was previously calculated.

Returns the pruned set of locations.

@param {[Location]} locations: The set of locations to prune
@param {int} overlap: The required level of overlap
If overlap maximization was indicated this function is used to prune the list of valid locations down to the ones that contain the maximum overlap that was previously calculated .