Skip to content

Commit 6d466ea

Browse files
committed
filter using arrow function, fix: #10
1 parent de2a98a commit 6d466ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

All Lessons/filterExample3.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
//filter out the greater than 3 numbers inside array
2+
3+
const arr = [5, 1, 3, 2, 6];
4+
5+
const output = arr.filter((z) => z > 3);
6+
console.log(output);

0 commit comments

Comments
 (0)