title: Using Lodash to create a new object to contain objects in an array with similar property
body: <p>Is it possible to use Lodash to identify the common values of an array of objects' property and group them together into an object of arrays with the value being set by the common value identified? </p>
  
  <p>Below is an example of a JSON data and Expected outcome. </p>
  
  <p>Because in the future I would like to do something like calculating the total value or the highest value of <code>FavouriteNo</code></p>
  
  <p>Take note: This is a fake JSON data that I created. </p>
  
  <p>The given JSON data</p>
  
  <pre><code>const arrayOfObj = [
    {
      Name: "John-Code",
      FavouriteNo: 91,
      FavouriteFood: "Pizza"
    },
    {
      Name: "John-Code",
      FavouriteNo: 5,
      FavouriteFood: "Hotdog"
    },
    {
      Name: "Sally-Tan",
      FavouriteNo: 124,
      FavouriteFood: "Ramen"
    },
    {
      Name: "John-Code",
      FavouriteNo: 1,
      FavouriteFood: "Burger"
    },
    {
      Name: "Ash-Charles",
      FavouriteNo: 825,
      FavouriteFood: "Donuts"
    },
    {
      Name: "Sally-Tan",
      FavouriteNo: 129,
      FavouriteFood: "Bread"
    }
  ];
  </code></pre>
  
  <p>The expected Arrangement</p>
  
  <pre><code>const expectedArrangement = {
        Code: [
          {
            Name: "John-Code",
            FavouriteNo: 91,
            FavouriteFood: "Pizza"
          },
          {
            Name: "John-Code",
            FavouriteNo: 5,
            FavouriteFood: "Hotdog"
          },
          {
            Name: "John-Code",
            FavouriteNo: 1,
            FavouriteFood: "Burger"
          }
        ],
        Tan: [
          {
            Name: "Sally-Tan",
            FavouriteNo: 129,
            FavouriteFood: "Bread"
          },
          {
            Name: "Sally-Tan",
            FavouriteNo: 124,
            FavouriteFood: "Ramen"
          }
        ],
        Charles: [
          {
            Name: "Ash-Charles",
            FavouriteNo: 825,
            FavouriteFood: "Donuts"
          }
        ]
      };
  </code></pre>
  
  <p>EDIT: I am planning to use Regex to detect the characters for the <code>Name</code> property</p>