Representing 2d space of indeterminate size with JS arrays - negative indexes?
<p>I'd like to represent 2d cartesian cordinates in a 2d JS array.  The 2d space is of indeterminate size (can extend into -x and -y space too).  This is fine for positive x and y values, but with a minimum index of 0 in JS arrays I can't extend into negative x and y space.</p>

<p>I have read some short information about the possibility of using negative indexes in JS, and that apparently these are technically possible, though not properly supported (e.g. array functions moght not work properly).  </p>

<p>I'm sure others must have had a similar requirement, so I'd like to ask - what's the recommended way of modelling this in JS? Are negative array indexes a workable solution?</p>
