I am in possession of the key StudentMembers[1].active
, and now I must verify if this particular key exists within the following array
const array= ["StudentMembers.Active", "StudentMembers.InActive"]
What is the method to eliminate the index [1]
from StudentMembers[1].active
and confirm the presence of StudentMembers.Active
within the array?