Skip to content

Commit a0e4519

Browse files
committed
test: Replaced forEach with for..of in test-net-isipv4.js
1 parent e329a11 commit a0e4519

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/parallel/test-net-isipv4.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ const v4not = [
3737
'192.168.0.2000000000',
3838
];
3939

40-
v4.forEach((ip) => {
40+
for(const ip of v4) {
4141
assert.strictEqual(net.isIPv4(ip), true);
42-
});
42+
};
4343

44-
v4not.forEach((ip) => {
44+
for(const ip of v4not) {
4545
assert.strictEqual(net.isIPv4(ip), false);
46-
});
46+
};

0 commit comments

Comments
 (0)