title: How I can rearrange the last element of an array to the first place?
body: <p>I have an array of objects in javascript:</p>
  
  <pre><code>shapeToolsTarget: Array(4)
  0: {id: 20, name: "Background", type: "shape"}
  1: {id: 21, name: "BorderColor", type: "shape"}
  2: {id: 22, name: "BorderWeight", type: "shape"}
  3: {id: 3, name: "Paste", type: "text"}
  </code></pre>
  
  <p>How I can rearrange the last element of an array to the first place? Like that:</p>
  
  <pre><code>shapeToolsTarget: Array(4)
  0: {id: 3, name: "Paste", type: "text"}
  1: {id: 20, name: "Background", type: "shape"}
  2: {id: 21, name: "BorderColor", type: "shape"}
  3: {id: 22, name: "BorderWeight", type: "shape"}
  </code></pre>