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; }