Add support for Spread operator #954

Closed
rwaldron opened this Issue Mar 22, 2013 · 1 comment

Comments

Projects
None yet
2 participants
Owner

rwaldron commented Mar 22, 2013

function foo(a, b, c) { 
  console.log(a, b, c); 
}
var args = [ 0, 1, 2 ];

foo(...args);
let initial = [ 1, 2, 3, 4, 5 ];
let extended = [ ...initial, 6, 7, 8, 9 ];

console.log(extended); // [ 1, 2, 3, 4, 5, 6, 7, 8, 9]

guyzmo added a commit to guyzmo/jshint that referenced this issue Mar 29, 2013

Added support for spread/rest operator (cf #953 and #954)
Added tests

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

guyzmo added a commit to guyzmo/jshint that referenced this issue Mar 29, 2013

Added support for spread/rest operator (cf #953 and #954)
Added tests

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

guyzmo added a commit to guyzmo/jshint that referenced this issue Mar 29, 2013

Added support for spread/rest operator (cf #953 and #954)
Added tests

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>

guyzmo added a commit to guyzmo/jshint that referenced this issue Mar 29, 2013

Added support for spread/rest operator (cf #953 and #954)
Added tests

Signed-off-by: Bernard `Guyzmo` Pratz <guyzmo+github@m0g.net>
Contributor

guyzmo commented Mar 29, 2013

done

@valueof valueof closed this in 6ab6645 Apr 9, 2013

jugglinmike added a commit to jugglinmike/jshint that referenced this issue Oct 21, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment