I want to do that in javascript:
for (int i = 0; i <= pieces; i++)
{
List<product> piecesProuducts = productList.Skip(i * 2).Take(2).ToList();
}
I have a json array. I want to get two records block from this json array as above linq code in javascript. Is that possible and how?