Here is an example of an array:
[
{
"id": 82,
"name": "fromcreate_date",
"displayName": "From Create Date",
"uiControl": "DATERANGE",
},
{
"id": 82,
"name": "tocreate_date",
"displayName": "To Create Date",
"uiControl": "DATERANGE",
},
{
"id": 83,
"name": "p_is_ut",
"displayName": "Is UT",
"uiControl": "HIDDEN",
}
]
The goal here is to filter this array based on uiControl === "DATERANGE"
and extract only the name property from the filtered objects into a new array like so:
outputArray = ["fromcreate_date", "tocreate_date"]