Sorting Names Without Articles
Sort the bands array alphabetically without the articles
First we need to strip the articles out of the names using a regular expression:
Apply the sort method on the bands array using the strip function:
Sort the bands array alphabetically without the articles
First we need to strip the articles out of the names using a regular expression:
Apply the sort method on the bands array using the strip function: