Lazy Diary @ Hatena Blog

PowerShell / Java / miscellaneous things about software development, Tips & Gochas. CC BY-SA 4.0/Apache License 2.0

連想配列の初期化

  var titles = new Array(
    authors[0]:new Array("デカスロン", "へうげもの", "度胸星"),
    ...

みたいなことはできないみたい。
つまり、連想配列の初期化を行う際に、その場で new したオブジェクトを値に使うことはできない。