Link to test case: Debugger code (debug.datatables.net): Error messages shown: Description of problem:
This question has an accepted answers - jump to answer
I have 5 rows of data with 3 columns. I want to get the values of the first 2 columns in each row
You can use columns().data(). You may want to use flatten() or toArray() depending on your needs.
columns().data()
flatten()
toArray()
You can also use rows().data() along with pluck()
rows().data()
pluck()
Kevin
It looks like you're new here. If you want to get involved, click one of these buttons!
Answers
I have 5 rows of data with 3 columns. I want to get the values of the first 2 columns in each row
You can use
columns().data()
. You may want to useflatten()
ortoArray()
depending on your needs.You can also use
rows().data()
along withpluck()
Kevin