How to check if a list is not empty?
if (serialNumbersList.Any()) //c# expression equivalent
{
// do stuff
}
How to check if a list is not empty?
if (serialNumbersList.Any()) //c# expression equivalent
{
// do stuff
}
In javascript there are no lists but arrays, and you can check their length
property
if(serialNumberList.length > 0) {
// Do your stuff
}