Answer the question
In order to leave comments, you need to log in
How to glue an array correctly?
There is an array like:
var data = [{"time":["00:00"],"workstation":4,"worker":4}, {"time":["00:00","01:45","03:30","05:15","07:00","08:45","10:30","12:15","14:00"],"workstation":11,"worker":4},{"time":["02:40"],"workstation":14,"worker":1},{"time":["02:40"],"workstation":4,"worker":1},{"time":["17:30","19:15","21:00","22:45"],"workstation":4,"worker":1},{"time":["17:30","19:15","21:00","22:45"],"workstation":14,"worker":1}];
{
"time" : [],
"workstation" : 14,
"worker" : 1
}
[
{"time" : "00:00", "workstation" : [14,5], "worker" : [1,4]},
{"time" : "01:45", "workstation" : [11], "worker" : [4]}
]
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