how to pass two dimensional array to another function javascript -
i want header function main headers , sub headers 2 dimensional array. , pass array function.because want check print value exact match main header under subheader. i declare 2 dimensional array below function. this, var code = [[]]; headers function main headers assign subcategory , sub headers code. call 2 dimensional array this, if (tmp === free['b'][y].subcategory) { html += '<td hidden="true">' + free['b'][y].code + '</td>'; html += '<td>' + free['b'][y].code + '</td>'; ------------------------------------- code= [ free['b'][y].code]; -------------------------------------- // alert(code [code]); [cryspy,mmnuts cryspy,mmjhf cryspy,bbghr bar,ffata bar,yjkou.....etc] } else { html += '<td></td>'; h...