I have a table of undetermined information (consisting of various columns and rows). I am now at the point where I need to utilize the function table.updateData()
, but this function specifically requires the column id
to be present in the data structure. Since the data is retrieved from an unspecified source, I cannot guarantee that the column id
will always exist.
Is there a solution to this issue or is there an alternate method for updating the data later on?
- p.s. I strictly use plain JavaScript without jQuery