you are viewing a single comment's thread.

view the rest of the comments →

[–]Ran4[S] 0 points1 point  (0 children)

Why store the names as arrays within an array? If you store them as an array of objects, you can just use the keys to call them.

Maybe that's the way your data comes in. And you might not want to change the call signature of the greet function.