System Verilog Array Methods In Javascript