lib/apis/clan.js
function(data) {
        var members = [],
            space = new RegExp(String.fromCharCode(65533), 'g');

        for (var i = 1; i < data.length; i++) {
            var member = data[i];
            members.push({
                player: member[0].replace(space, ' '),
                rank: member[1],
                exp: Number(member[2]),
                kills: Number(member[3])
            });
        }

        return members;
    }
function(data) {
        var members = [],
            space = new RegExp(String.fromCharCode(65533), 'g');

        for (var i = 1; i < data.length; i++) {
            var member = data[i];
            members.push({
                player: member[0].replace(space, ' '),
                rank: member[1],
                exp: Number(member[2]),
                kills: Number(member[3])
            });
        }

        return members;
    }
function ( data ) { var members = [ ] , space = new RegExp ( String . fromCharCode ( 65533 ) , 'g' ) ; for ( var i = 1 ; i < data . length ; i ++ ) { var member = data [ i ] ; members . push ( { player : member [ 0 ] . replace ( space , ' ' ) , rank : member [ 1 ] , exp : Number ( member [ 2 ] ) , kills : Number ( member [ 3 ] ) } ) ; } return members ; }
Read the clans data from a csv to an array object
Read the clans data from a csv to an array object