-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated for
to for..of
#18696
Updated for
to for..of
#18696
Conversation
|
Looks like you can do: clients.matchAll(options).then(function(clientList) {
for (const client of clientList) {
if (client.url === 'index.html') {
clients.openWindow(client);
// or do something else involving the matching client
}
}
}); |
for (let i = 0; i < array.length; i++) { | ||
randText.textContent += `${array[i]} `; | ||
} | ||
randText.textContent = `The random numbers are: ${array.join(" ")}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've refactored it further. This one needs to be backported to the live examples.
Summary
Motivation
Supporting details
Related issues
Part of #18103
Metadata