Equivalent Ruby .times in Coffeescript

前端 未结 5 2002
滥情空心
滥情空心 2021-02-11 13:25

What is the most concise equivalent Coffeescript to the following:

# ruby    
3.times { puts \'hi\' }

?

The best I could think of is:

5条回答
提交回复
热议问题