結果 : loop through an enum javascript