Remove Last 2 Index Of Array Javascript