blob: fc25f50c22ba7f79611049be0bbcdc311acbb768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
export function recursiveValues(obj: { [k: string]: any }): any[] {
let values = [];
for (let key in obj) {
let val = obj[key];
if (typeof val === "object") {
values.push(...recursiveValues(val));
} else {
values.push(val);
}
}
return values;
}
|