
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@putout/plugin-for-of
Advanced tools
The
for...ofstatement creates a loop which invokes a custom iteration hook with statements to be executed for the value of each element of an array.(c) MDN
đPutout plugin adds support of transformation for...of statements.
npm i @putout/plugin-for-of
{
"rules": {
"for-of/map": "on",
"for-of/for": "on"
}
}
The
map()method creates a new array populated with the results of calling a provided function on every element in the calling array.(c) MDN
names.map((name) => {
alert(`hello ${name}`);
});
for (const name of names) {
alert(`hello ${name}`);
}
The
forstatement creates a loop that consists of three optional expressions, enclosed in parentheses and separated by semicolons, followed by a statement to be executed in the loop.(c) MDN
const n = items.length;
for (let i = 0; i < n; i++) {
const item = items[i];
log(item);
}
for (const item of items) {
log(item);
}
for (let i = 0; i < array.length; i++) {
const item = array[i];
console.log(item);
}
for (const item of items) {
log(item);
}
for (let i = 0; i < array.length; i++) {
const item = array[i];
console.log(i, item);
}
for (const [i, item] of array.entries()) {
console.log(i, item);
}
const n = array.length;
for (let i = 0; i < n; i++) {
const item = array[i];
console.log(i, item);
}
for (const [i, item] of array.entries()) {
console.log(i, item);
}
MIT
FAQs
đPutout plugin adds ability to apply for...of
We found that @putout/plugin-for-of demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.