I have the following key StudentMembers[1].active but I need to check if this key exist in the following array
const array= ["StudentMembers.Active","StudentMembers.InActive"]
How to remove the index [1] from StudentMembers[1].active and check if StudentMembers.Active does exist in the array