typescript enum to array