title: How to group by dict values and store into list in javascript
body: <p>I have a dictionary, I want to make n number of list based on the unique values in dictionary value. </p>
  
  <p>For example:</p>
  
  <pre><code>dic={
  "allenp":10,"amber.ebow@enron.com":13,"amelia.alland@enron.com":13,"andrea.ring@enron.com":15,"andy.zipper@enron.com":9,"anne.bike@enron.com":10,"anne.koehler@enron.com":4,"arnold-j":9,"barbara.gray@enron.com":6,"barton.clark@enron.com":9,"bass-e":6,"gary.lamphier@enron.com":6,"gay-r":13,"gerald.nemec@enron.com":12}
  </code></pre>
  
  <p>I want to convert this into Expected Output,</p>
  
  <pre><code>[['anne.koehler@enron.com'], ['gary.lamphier@enron.com', 'bass-e', 'barbara.gray@enron.com'], ['arnold-j', 'barton.clark@enron.com', 'andy.zipper@enron.com'], ['allenp', 'anne.bike@enron.com'], ['gerald.nemec@enron.com'], ['amelia.alland@enron.com', 'gay-r', 'amber.ebow@enron.com'], ['andrea.ring@enron.com']]
  </code></pre>
  
  <p>How to do this in Javascript?</p>
  
  <p>I'm new to javascript.</p>
  
  <p>If I need to solve this problem in python I would do like below,</p>
  
  <pre><code>df= pd.DataFrame(dic.items())
  x=[]
  [x.append(v[0].values.tolist()) for u,v in df.groupby([1])]
  print x
  </code></pre>
  
  <p>Please help me to solve this problem.</p>