How do you filter a key inside an object wrapped in an array?

Discussão em 'Angular' iniciado por nothing changes, Janeiro 25, 2025.

  1. here I have an array like below, then I will send this data to the API as shown below

    {
    assignStudents: [
    {
    isAssigned: true,
    binusID: "xxxxx",
    fullname: "John 1",
    acadOrg: "DRM",
    acadPlan: "Strategy & Growth"
    },
    {
    isAssigned: true,
    binusID: "xxxxx",
    fullname: "John 2",
    acadOrg: "DCS",
    acadPlan: "Computer Science"
    },
    {
    isAssigned: false,
    binusID: "xxxxx",
    fullname: "John 3",
    acadOrg: "DRM",
    acadPlan: "Strategy & Growth
    },
    ],
    academicTermID: ""
    }


    parameters in the API

    I have a problem when posting data, so I must first choose the data to be posted, namely binusID and acadOrg.

    My question is how to filter the keys inside an object wrapped in an array?

    Continue reading...

Compartilhe esta Página