Produce a spiral array. A *spiral array* is a square arrangement of the first N<sup>2</sup> natural numbers, where the numbers increase sequentially as you go around the edges of the array spiraling inwards. For example, given **5**, produce this array:
<pre>
0 1 2 3 4
15 16 17 18 5
14 23 24 19 6
13 22 21 20 7
12 11 10 9 8
</pre>
# --hints--
`spiralArray` should be a function.
```js
assert(typeof spiralArray == 'function');
```
`spiralArray(3)` should return an array.
```js
assert(Array.isArray(spiralArray(3)));
```
`spiralArray(3)` should return `[[0, 1, 2],[7, 8, 3],[6, 5, 4]]`.