Commit 493b365
authored
Update arrays.js
For function getName(), the parameter should be an array of arrays, since the function utilize find() method.
The original parameter "dog" may imply that the method takes a dog object - which will cause an error
Error: dog.find is not a function1 parent 8e24751 commit 493b365
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
0 commit comments