What does “Splats” mean in the CoffeeScript tutorial?

前端 未结 4 1048
别跟我提以往
别跟我提以往 2020-12-22 21:58

Looking at this CoffeeScript tutorial : http://jashkenas.github.com/coffee-script/

I don\'t quite see what the Splats is for. What is this construction? Where does i

4条回答
  •  鱼传尺愫
    2020-12-22 22:23

    Splats is the term for the use of the ... operator for var-args (functions that take a variable number of arguments).

提交回复
热议问题