Given: an array containing hashes of names
Return: a string formatted as a list of names separated by commas except for the last two names, which should be separated by an ampersand.
Example:
1 |
list([ {name: 'Bart'}, {name: 'Lisa'}, {name: 'Maggie'} ]) |
Answers:
1 |
#大佬们的回答 |
近期评论