How to declare a generic list with elements in it ? JS

Hello, i would like to replace some arrays with generic list but i can’t find examples of a generic list being declared and that have elements in it.

So at the moment, i have arrays, declared like this :

static var namesShipsImperium : Array = new Array( "Seduction Star", "Flame Of Theory", "Lord Inquisitor");

All i could find on how to declare a list was this :

import System.Collections.Generic;

var namesShipsImperium = new List.<String>();
namesShipsImperium[0] =  "Seduction Star";
namesShipsImperium[1] =  "Flame Of Theory";
namesShipsImperium[2] =  "Lord Inquisitor";

So is it possible to declare a list with those elements in a single line, as it is possible for arrays ? If yes, please show me how to do it.

So, nobody knows or that’s just impossible ? Please help, I really need this information to optimize the code of my project…

var namesShipsImperium = new List.<String>(["Seduction Star", "Flame Of Theory", "Lord Inquisitor"]);

–Eric

Thanks a lot !