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 3b97dc6 commit 1348647Copy full SHA for 1348647
hof.js
@@ -21,8 +21,8 @@ var people = [
21
// called `peopleNames`.
22
// Type your solution immediately below this line:
23
24
-function getName (item, i) {
25
- var name = [item.name].join(" ")
+function getName (item) {
+ var name = [item.name].join(' ')
26
return name
27
}
28
@@ -33,6 +33,8 @@ var peopleNames = people.map(getName)
33
// to a variable called `polyglotPeople`.
34
35
36
-var polyglotPeople = people.filter(function(lang){
37
- if(people.)
38
-})
+var polyglotPeople = people.filter(function (lang) {
+ if (people.lang > 1) {
+ return lang
39
+ }
40
+})
0 commit comments