lodash example

HTML

<script src="https://lodash.com/_js/lodash.js"></script>

JavaScript

var employee=[
    {
     
      "firstName": "Ram",
      "socialSecurityNumber": "111-11-1111",
      "clientId": 9530
    },
    {
      
      "firstName": "adsfaasf",
      "socialSecurityNumber": "111-11-1111",
      "clientId": 9609
    },
    {
      "employeeId": 7586298,
      "lastName": "asdfasdasd",
      "firstName": "asas",
      "socialSecurityNumber": "111-11-1111",
      "clientId": 10260
    },
    {
      "employeeId": 7586299,
      "lastName": "test",
      "firstName": "test",
      "socialSecurityNumber": "111-11-1111",
      "clientId": 2484
    },
    {
      "employeeId": 7586192,
      "lastName": "kas",
      "firstName": "ram",
      "socialSecurityNumber": "222-22-2222",
      "clientId": 9530
    }
  ];
  //console.log(_.keyBy(employee,'socialSecurityNumber'))
  //console.log(_.map(employee,'socialSecurityNumber'))
  //console.log(_.groupBy(employee,'socialSecurityNumber'))
  console.log(_.uniqBy(employee,'clientId'))
  //console.log(_.chunk(employee,2))