You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var a = ""
var b = ""
// 配列の分割代入
[a, b] = ['foo', 'bar']
<: a // foo
<: b // bar
// オブジェクトの分割代入
{ str1: a, str2: b } = { str1: 'hoge', str2: 'fuga' }
<: a // hoge
<: b // fuga
The text was updated successfully, but these errors were encountered:
JavaScriptのような分割代入を出来るようにしたいです。
The text was updated successfully, but these errors were encountered: