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 f4c8497 commit d857090Copy full SHA for d857090
hof.js
@@ -21,9 +21,24 @@ var people = [
21
// called `peopleNames`.
22
// Type your solution immediately below this line:
23
24
+var peopleNames = [];
25
26
+people.map((value) => {
27
+ peopleNames.name.push(value)
28
+ return peopleNames;
29
+}
30
31
// #2: Use the `filter` array method to create a new, filtered array containing only
32
// persons from the `people` array who know multiple languages. Assign the returned array
33
// to a variable called `polyglotPeople`.
34
35
+
36
+var polyglotPeople = [];
37
38
+ people.filter(
39
+ function(value) {
40
+ if (value.knownLanguages > 1) {
41
+ polyglotPeople.push(value);
42
+ }
43
44
+ );
0 commit comments