title: UML for javascript?
body: <p>I'm looking for a way of graphically representing javascript objects...</p>
  
  <p>I know there is UML, but for example, how to represent the <strong>chain</strong> between 2 objects, eg:</p>
  
  <pre><code>var a, b;
  
  a = {};
  b = Object.create(a);
  </code></pre>
  
  <p>Intuitively, I'd draw something like this:</p>
  
  <pre><code>+-----+
  |b    |
  |-----|
  |     |
  +--+--+
     |     +-----+
     +----&gt;|a    |
           |-----|
           |     |
           +-----+
  </code></pre>
  
  <p>but is there a decent representation in UML?</p>
  
  <p>And what about <strong>mixins</strong>?</p>
  
  <pre><code>c = $.extend({}, a, b)
  
  +-----+           +-----+
  |a    |           |b    |
  |-----|           |-----|
  |     |&lt;----------|     |
  +-----+           +-----+
     +     +-----+
     |     |c    |
     |     |-----|
     +----&gt;|     |
           +-----+
  </code></pre>