Add an else block to loops that only run if the lo...
# language-proposals
r
Add an else block to loops that only run if the loop never runs:
Copy code
for (resource in listOfResources) {
    // Do something with the resources
} else {
    // Do something when no resources are found
}
🤔 1