title: Get unique items from array of objects
body: <p>i have an array</p>
  
  <pre><code>friendList = [
                {id: 1, fName: 'Sam', lName: 'Brian', profilePic: 'sam.jpg'},
                {id: 2, fName: 'Dam', lName: 'Nary', profilePic: 'dam.jpg'},
                {id: 3, fName: 'Jam', lName: 'kent', profilePic: 'jam.jpg'},
                {id: 1, fName: 'Sam', lName: 'Brian', profilePic: 'sam.jpg'},
                {id: 3, fName: 'Jam', lName: 'kent', profilePic: 'jam.jpg'}, 
               ]
  </code></pre>
  
  <p>how can i get a unique array of this friendList.. such that the result is :</p>
  
  <pre><code>friendList = [
                {id: 1, fName: 'Sam', lName: 'Brian', profilePic: 'sam.jpg'},
                {id: 2, fName: 'Dam', lName: 'Nary', profilePic: 'dam.jpg'},
                {id: 3, fName: 'Jam', lName: 'kent', profilePic: 'jam.jpg'}
               ]
  </code></pre>