Answer the question
In order to leave comments, you need to log in
How to trim each object in an array?
Hello! Can you please tell me the best way to cut each object in an array?
There is such an object with arrays
data = {
test1: [{id: '1', ...}, {id: '2', ...}, ...],
test2: [{id: '3', ...}, {id: '4', ...}, ...],
test3: [],
test4: [],
}
data2 = {
test1: ['1', '2'...],
test2: ['3', '4' ...],
test3: [],
test4: [],
}
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