We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60a725d commit 13cf905Copy full SHA for 13cf905
heigherorder.js
@@ -0,0 +1,7 @@
1
+const arr=[5,1,3,2,6];
2
+//using the map funcition in order to make the transformation
3
+function isodd(x){
4
+ return x%2;
5
+}
6
+const output = arr.filter(isodd);
7
+console.log(output);
0 commit comments