How to create a collections for particular type in js?
<p>In C# i have a collection for a type like this.</p>

<pre><code> public class scale
 {

 }


 public class scales : List&lt;scale&gt;
 {
     // some codes.
 }
</code></pre>

<p>For scale, I used the functions like this:</p>

<pre><code>scale = function ( )
{

}
</code></pre>

<p>How to create a scales (collections for a function) in js?</p>
