title: Firebase pushing array - Javascript
body: <p>I am using Firebase to store information for a workout application.</p>
  
  <p>I user adds a workout name and then I push it to the database. I can continue pushing these but my issue is that it does not seem to be pushing as an array just an object. See the screen shots below...</p>
  
  <p><a href="https://i.stack.imgur.com/sx5fT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sx5fT.png" alt="Console log from firebase object"></a></p>
  
  <p><a href="https://i.stack.imgur.com/AKCnM.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AKCnM.png" alt="enter image description here"></a></p>
  
  <p>As you can see in the console log picture the workouts property is an object not an array like I expect.</p>
  
  <p>The code I'm using to push it:</p>
  
  <pre><code>    let newWorkout = {
        title: 'title',
        exercises: [{
          name: 'pulldownsnsn',
          sets: 4
        }]}
  
      let ref = firebase.database().ref("/userProfile/"+this.userId);
  
      ref.child("workouts").push(newWorkout);
  </code></pre>