I am working with an array that looks like this:
result = ['Saturday','Sunday']
My goal is to return the index for each of the days above, like this:
detail= [6,7]
I attempted the following approach to achieve this, but unfortunately it did not work. I am new to working with Angular:
var detail = result.getWeekday()