<p>Write code that enhances all arrays such that you can call the <code>array.last()</code> method on any array and it will return the last element. If there are no elements in the array, it should return <code>-1</code>.</p>
<p>You may assume the array is the output of <code>JSON.parse</code>.</p>