7983-testToMaster_2438 #2977
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
function flatten(dataArray) {
|
function flatten(dataArray) {
|
||||||
return dataArray.map(item => flatten(item.__data));
|
return dataArray.map(item => flattenObj(item.__data));
|
||||||
}
|
}
|
||||||
function flattenObj(data, prefix = '') {
|
function flattenObj(data, prefix = '') {
|
||||||
let result = {};
|
let result = {};
|
||||||
|
|
Loading…
Reference in New Issue