Answer the question
In order to leave comments, you need to log in
How to distribute an array into 100 cells?
Hello. There is an array like
var array = {
// some data
'deposits' : {
{
'id_user' : 31231232313123,
'tickets' : 228,
'chance': 23.34
},
{
'id_user' : 131232312312311,
'tickets' : 1337,
'chance': 76.66
},
}
};
var arrayOutput = {
{
'user_id' : 3132131213123,
'chance' : 82.03,
//other data
},
{
'user_id' : 3132131213123,
'chance' : 82.03,
//other data
},
{
'user_id' : 3132131213123,
'chance' : 82.03,
//other data
},
{
'user_id' : 3132131213123,
'chance' : 82.03,
//other data
},
{
'user_id' : 3132131213123,
'chance' : 82.03,
//other data
},
{
'user_id' : 989489482,
'chance' : 17.97,
//other data
},
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question