System Verilog Array Methods Javascript Map Function Practice