0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

...(三点リーダー的な奴)の使い方

Posted at

スプレットオペレーター

ES6の記法

http://analogic.jp/spread-operator/
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Operators/Spread_syntax

配列を連結したり、連結して関数に投げたりできる。

function getTest(x,y,z) {
    return x + y + z;
};
var test = [1,2,3];
console.log(getTest(...test));
// output : 6
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?