title: How to shift all the items in an array to the right(by 1) using method map?
body: <p>i have no idea on how to solve this problem. How can i shift all the items in an array by one, using the map method?</p>
  
  <pre><code>function shift(arr) {
    // code
  }
  const b = [{ value: "" }, 8, "left"];
  console.log(shif(b));
  </code></pre>
  
  <p>The output should be ["left", { value: "" }, 8];</p>
  
  <p>Thank you very much to everyone!</p>