Bug 38411 - [ES6] Add support for the spread operator
Summary: [ES6] Add support for the spread operator
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://wiki.ecmascript.org/doku.php?i...
Keywords:
Depends on:
Blocks: 80559
  Show dependency treegraph
 
Reported: 2010-04-30 16:03 PDT by Erik Arvidsson
Modified: 2016-06-06 20:29 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2010-04-30 16:03:41 PDT
The spread operator is one of the approved proposals for the next version of ECMAScript (Harmony)

function f(a, b) {
  assertEquals(0, a);
  assertEquals(1, b);
}

var array = [0, 1];
f(...array);

The spread operator removes most needs of Function.prototype.apply.
Comment 1 Joseph Pecoraro 2016-06-06 20:29:43 PDT
Spread operator has been implemented for a while now! Lets close this.