// Build pristine deck
var _ = require('lodash');
var RANKS = [2, 3, 4, 5, 6, 7, 8, 9, 'T', 'J', 'Q', 'K', 'A'],
SUITS = ['s', 'c', 'd', 'h'],
deck = [];

_.forEach(RANKS, function (rank) {
  _.forEach(SUITS, function (suit) {
    deck.push(rank + suit);
  });
});

module.exports = deck;
/* Exports an unshuffled 52 card deck of cards in the form
* card: {rank: Q, suit: s}
*/
var _ = require('lodash');
var RANKS = [2, 3, 4, 5, 6, 7, 8, 9, 'T', 'J', 'Q', 'K', 'A'],
SUITS = ['s', 'c', 'd', 'h'],
deck = [];


_.forEach(RANKS, function (rank) {
  _.forEach(SUITS, function (suit) {
    var card = {};
    card.rank = rank;
    card.suit = suit;
    deck.push(card);
  });
});

module.exports = deck;
Change to deck to simple object instead of array