In select function this line,
obj[dstFieldName] = (isSimple ? result[index] : (result[index][srcFieldName] || null) );
What is this "|| null" for? It returns null when value is 0.
For example, this query new jinqJs().from([[0],[0],[1],[0],[2]]).select([{field:0,text:0}])
returns [[null],[null],[1],[null],[2]] where expected result is [[0],[0],[1],[0],[2]]
Hi,
In select function this line, obj[dstFieldName] = (isSimple ? result[index] : (result[index][srcFieldName] || null) ); What is this "|| null" for? It returns null when value is 0.
For example, this query new jinqJs().from([[0],[0],[1],[0],[2]]).select([{field:0,text:0}]) returns [[null],[null],[1],[null],[2]] where expected result is [[0],[0],[1],[0],[2]]