How do I create multidimensional arrays in angular2
<p>I'm creating a service of 'global' variables to import into other components (ie. make them available everywhere). This code works in old javascript:</p>

<pre><code>sArrays = [];
sArrays[0] = [0,1,2,3];
sArrays[1] = [3,0,1,2];
sArrays[2] = [2,3,0,1];
sArrays[3] = [1,2,3,0];
</code></pre>

<p>but throws an error:</p>

<p>[ts] Duplicate identifier 'sArrays'. [ts] Subsequent variable declarations must have the same type.  Variable 'sArrays' must be of type 'any[]', but here has type '[number, number, number, number]'. (property) GlobalsService.sArrays: any[]</p>

<p>in Typescript and I don't understand the error (aren't I creating a Type Array of a Type Array?)</p>