title: Clone a object JSON but until its 5th key-value
body: <p>I have a JSON that has more than 10 key-values, I need to create a copy of this but limiting it until the 5th key-value. </p>
  
  <p>Input:</p>
  
  <pre><code>var object1 = {
    "1a": 1,
    "2b": 2,
    "3c": 1,
    "4d": 2,
    "5e": 1,
    "6f": 2,
    "7g": 1,
    "8h": 2,
    "9i": 1,
    "10j": 2
  };
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>var object2 = {
    "1a": 1,
    "2b": 2,
    "3c": 1,
    "4d": 2,
    "5e": 1,
  };
  </code></pre>
  
  <p>I'm thinking about creating a new one key per key by using a for until 10th. Any thoughts?</p>