是否在Nodejs中以严格模式提供Spread运算符?

时间:2016-03-18 14:44:47

标签: node.js

在Nodejs中是否以严格模式提供Spread运算符? ,例如:

"use strict"

class LongAggregationQuery {
    constructor(...aggregationQueries){
        this.aggregationQueries=aggregationQueries;
   }
}

1 个答案:

答案 0 :(得分:1)

是的,它在严格模式下可用,没有 - 和弦标志。见"Which features ship with Node.js by default (no runtime flag required)?"

<强>更新

请参阅http://node.green/了解ES6功能的实施状态(例如,传播运营商)。