if for..of is available, use it