title: How to loop through result in sequelize
body: <p>How can I get the <code>dataValues</code> out of the response. I have tried doing <code>console.log(result.dataValues)</code> but it returns undefined.</p>
  
  <p>Response</p>
  
  <pre><code>[ User {
    dataValues: {
      id: 16,
      user_id: '140235016357535420',
      server_id: '535881918483398676',
      xp: 40995,
      coins: 0,
      createdAt: 2019-03-09T22
      :
      59: 09.216Z,
      updatedAt: 2019-03-09T22
      :
      59: 09.216Z
    },
  },
  User {
    dataValues: {
      id: 16,
      user_id: '140235016357535420',
      server_id: '535881918483398676',
      xp: 40995,
      coins: 0,
      createdAt: 2019-03-09T22
      :
      59: 09.216Z,
      updatedAt: 2019-03-09T22
      :
      59: 09.216Z
    },
  },]
  </code></pre>
  
  <p>Query</p>
  
  <pre><code>User.findAll({
      where: {
          server_id: msg.guild.id,
      },
      limit: 2,
      order: [
          ['xp', 'DESC'],
      ],
  }).then(result =&gt; {
      console.log(result);
  });
  </code></pre>
  
  <p>Model </p>
  
  <pre><code>'use strict';
  module.exports = (sequelize, DataTypes) =&gt; {
      const User = sequelize.define('User', {
          user_id: DataTypes.STRING,
          server_id: DataTypes.STRING,
          xp: DataTypes.INTEGER,
          coins: DataTypes.INTEGER,
      }, {});
      /*  User.associate = function(models) {
          // associations can be defined here
      };*/
      return User;
  };
  </code></pre>