I was wondering if there is a way in javascript to have logic similar to the coalesce statement in sql that will return data in the specified order as follows:
Select top 1 Coalesce(ColA, ColB, "No Data Found") from TableA;
Is there an elegant way to handle null values ββin Javascript, just like sql returns the results in the above statement?
I know that I can technically have a switch statement, but this will require some kind of optional code
Thanks.
javascript jquery coalesce
some_bloody_fool
source share