I was wondering if there is a way in javascript to have logic similar to the coalesce statement in sql which will return data in a specified order like this:
Select top 1 Coalesce(ColA, ColB, "No Data Found") from TableA;
is there an elegant way to deal with null values in Javascript, the same way that sql returns results in the above statement?
i know i could technically have a switch statement, but this would require some possibly unnecessary code
Thank you.