Tree output with filtering
1const tree = convertObject(data, {2 outputFormat: 'tree',3 filterFn: (val, key) => typeof val === 'string'4});6console.log(tree);7// [8// { key: 'user', children: [{ key: 'name', value: 'Alice' }] },9// { key: 'settings', children: [{ key: 'theme', value: 'dark' }] }10// ]