← Back to release summary

Spread (call and array) (ES6)

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 46)
Intent stage
None

Summary

Spread calls allow an iterable expression to be spread into function arguments, similar to using Function.prototype.apply. Spread array allows an array literal to contain spread expressions which spreads the values of the iterator into the array.

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator

Samples: https://googlechrome.github.io/samples/spread-operator/index.html

View on chromestatus.com