columns.data should return an empty array when there is no data

columns.data should return an empty array when there is no data

EtheloEthelo Posts: 4Questions: 3Answers: 0

Link to test case:
I don't have a public test case

Debugger code (debug.datatables.net):
ilufay

Error messages shown:
None
Description of problem:

I was using the columns.data() method in a draw callback, and it kept returning an object (possibly the column?) instead of a data array. I didn't realize my ajax source was invalid, and it took me a while to figure out why i was getting a random object. It'd be great if this method returned an empty array if there is no data, or if there was a note in the documentation for this method for when an array will not be returned. Thank you.

Answers

This discussion has been closed.