System Verilog Array Methods Javascript Map Vs Array