Skip to content

Commit 1348647

Browse files
NoonNoon
authored andcommitted
update hof file in ga-wdi-exercises#1
1 parent 3b97dc6 commit 1348647

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

hof.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ var people = [
2121
// called `peopleNames`.
2222
// Type your solution immediately below this line:
2323

24-
function getName (item, i) {
25-
var name = [item.name].join(" ")
24+
function getName (item) {
25+
var name = [item.name].join(' ')
2626
return name
2727
}
2828

@@ -33,6 +33,8 @@ var peopleNames = people.map(getName)
3333
// to a variable called `polyglotPeople`.
3434
// Type your solution immediately below this line:
3535

36-
var polyglotPeople = people.filter(function(lang){
37-
if(people.)
38-
})
36+
var polyglotPeople = people.filter(function (lang) {
37+
if (people.lang > 1) {
38+
return lang
39+
}
40+
})

0 commit comments

Comments
 (0)