I'm just new at javascript and currently working with arrays and objects.
Can somebody help me to get the data if the searchble is true in columns. I have columns in array
let columns = [
{
data: "id",
searchable: false
},
{
data: "first_name",
searchable: true
},
{
data: "last_name",
searchable: true
}
];
let filter = {
target: columns, // if searhable is true
};
If I console log the filter. It will look like this. Result:
{
target: [
0: "first_name"
1: "last_name"
]
}