i have variabel data like this, and i want to slice object inside it
[{
"id_pemasangan_mesin": 0.2879244882244172,
"wsid": "3Y9W",
"location_2nd": "Bekasi Timur barat",
"branch": "0998-SLA. JAKARTA",
"vendor_pkt_name": "PT NCR INDONESIA",
"djpw_kcu_induk": "244 - Kalimalang",
"lokasi_pengambilan_kartu": "0393 - KARTASURA",
"operational_hour_start": null,
"city": "Kotamadya Bekasi",
"djpw_provinsi": "Jawa Barat",
"djpw_latitude": "-6.248329"
},
{
"id_pemasangan_mesin": 0.9599194420299093,
"wsid": "0XPR",
"location_2nd": "Bekasi Timur barat",
"branch": "0998-SLA. JAKARTA",
"vendor_pkt_name": "PT Wakwaw INDONESIA",
"djpw_kcu_induk": "333",
"lokasi_pengambilan_kartu": "7735 - THE PARK",
"operational_hour_start": null,
"city": "Kotamadya Bekasi",
"djpw_provinsi": "Jawa Barat",
"djpw_latitude": "-6.248329"
}]
and i want to make that object like this
[{
"id_pemasangan_mesin": 0.2879244882244172,
"wsid": "3Y9W",
"location_2nd": "Bekasi Timur barat",
"branch": "0998-SLA. JAKARTA",
"vendor_pkt_name": "PT Wakwaw INDONESIA",
"djpw_kcu_induk": "244 - Kalimalang",
"lokasi_pengambilan_kartu": "0393 - KARTASURA"
},
{
"id_pemasangan_mesin": 0.9599194420299093,
"wsid": "0XPR",
"location_2nd": "Bekasi Timur barat",
"branch": "0998-SLA. JAKARTA",
"vendor_pkt_name": "PT NCR INDONESIA",
"djpw_kcu_induk": "432",
"lokasi_pengambilan_kartu": "7735 - THE PARK"
}]
what function in javascript to make my respon like my expected anyone can give example? i try splice but the result is work only on array value not object