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 8124698 commit fd20195Copy full SHA for fd20195
juhee067/[week1]Array/number_of_duplicate.js
@@ -0,0 +1,6 @@
1
+// 정수가 담긴 배열 array와 정수 n이 매개변수로 주어질 때,
2
+// array에 n이 몇 개 있는 지를 return 하도록 solution 함수를 완성해보세요.
3
+
4
+function solution(array, n) {
5
+ return array.filter((v) => v === n).length;
6
+}
0 commit comments