I am using Vue.js
What I want is to get one column named 'name'
from the multidimensional array.
I am not sure the dimensional size of this multidimensional array.
Sample array is here
{
"form":{
"id":"123465",
"title":"User Information",
"fields":[
{
"type":"date",
"title":"Document date",
"name":"document_date",
"required":true
},
{
"type":"input",
"title":"Document no",
"name":"document_no",
"required":true
}
],
"tabs":{
"xxx-general":{
"title":"General",
"fields":[
{
"type":"date",
"title":"DOB",
"name":"dob"
},
{
"type":"toggle",
"title":"Keep my profile private",
"name":"is_private"
},
]
},
"xxx-times":{
"title":"Ticket",
"fields":[
{
"type":"datetime",
"title":"Arrival time",
"name":"arrival_time"
},
[
{"type":"number","title":"Quantity","name":"quantity"},
{"type":"currency","title":"Price","name":"price"}
]
]
}
}
}
}
I know there is array_column
function in PHP, I want to use the javascript function equivalent to this PHP function.
Anyone helps me