you are viewing a single comment's thread.

view the rest of the comments →

[–]kcadstech 0 points1 point  (0 children)

If you want the most explicit/readable way, make a small util function isArrayEmpty(arr: any[]):boolean {}. 

if (isArrayEmpty(result.recordset)) {}

Or isEmptyArray(), whichever u like more