JSFiddle - React, Tailwind, and code Playground

by vaibhav2812

JavaScript

const obj = [{
    "id": "df6d339f-148c-4482-b21a-4e69e34c5587",
    "createdBy": "subject:5bc72316583c8a00012d0b98",
    "lastModifiedBy": "subject:5bc72316583c8a00012d0b98",
    "created": "2018-10-18T05:48:52",
    "lastModified": "2018-10-18T05:48:52",
    "status": "Published",
    "version": 1,
    "data": {
      "title": "Simplify Communication",
      "text": "Communicate to Employees via Feeds, SMS, Email",
      "active": true,
      "image": [],
      "tags": []
    },
    "isPending": false
  },
  {
    "id": "58d5c14c-282a-4d27-8409-4d491f3016c8",
    "createdBy": "subject:5b3994e1a8bd130001f248fe",
    "lastModifiedBy": "subject:5b3994e1a8bd130001f248fe",
    "created": "2018-10-17T11:46:12",
    "lastModified": "2018-10-18T05:48:28",
    "status": "Published",
    "version": 4,
    "data": {
      "title": "Smart Attendance with Geo mark",
      "text": "GPS attendance marking",
      "active": true,
      "image": [
        "fb95d5c3-fcee-448a-a041-aa895e119c31"
      ],
      "tags": [
        "all",
        "india"
      ]
    },
    "isPending": false
  },
  {
    "id": "d95f5214-72a7-4d33-846b-955f8b9643b8",
    "createdBy": "subject:5bc72316583c8a00012d0b98",
    "lastModifiedBy": "subject:5b3994e1a8bd130001f248fe",
    "created": "2018-10-17T13:12:38",
    "lastModified": "2018-10-17T15:33:15",
    "status": "Published",
    "version": 2,
    "data": {
      "title": "Anytime, Anywhere Access",
      "text": "Employee Self Service at your Fingertips",
      "active": true,
      "image": [],
      "tags": [
        "all"
      ]
    },
    "isPending": false
  }
];

const re = obj.map((val) => val.data);
console.log(re);