Hi, I’m writing a program in Node.js using AIrtable API that fetches the record from Airtable and sends it to WhatsApp. The problem I’m facing is that for example, there are three columns
COL1 | COL2 | COL3
I’m trying to achieve that if any of the columns are empty, it skips that one and moves on to the another.
But when I execute col1 == null || col1 == undefined
it returns false
. This statement returns true only for the last column.
Also when I execute col1.length
it returns 1 but for the last column, it returns Cannot read properties of undefined (reading 'length')
I don’t understand why the empty cells/ column before the last one doesn’t return undefined.