ive searched here and i cant find a solution for this, i think im just missing some syntax.
var DataSend = [];
for ( $i=0; $i < $MovimentosLength; $i++) {
DataSend = [
$i =[
'CodProduto', CacheQL.Movimentos.CodProduto[$i],
'ProdutoDesignacao', CacheQL.Movimentos.ProdutoDesignacao[$i],
'Valor', CacheQL.Movimentos.Valor[$i],
'Percentagem', CacheQL.Movimentos.Percentagem[$i]
],
]
}//#FOR
is this possible? I know how to do it in PHP but in js i dont really know the syntax.
Thanks
$ivariable with every loop.DataSend[$i] = ['CodProduto',...]for...ofand functional utilities likeArray.prototype.mapandArray.prototype.reducethat could probably make this easier to read/write. If you show more code around this problem, we may be able to give you a better solution.