I got have the output of [Document<Recording<string, any>>, number][]
each element is described as:
[
Document{
page: 'I have worked for ABC company',
meta: { id: emloyee-111, name: 'John"}
},
245
]
[
Document{
page: 'I'm Software developer',
meta: { id: emloyee-444, name: 'Marry"}
},
789
]
For (employee of employees) {
// get id
// get name
// get the number 245, 789
}
In typescript (or javasSript), how to I get the numbers (245, 789) of two employees and their id and name.
2
Answers
Just iterate over the output
Or, if you’re trying to get to the data from an employees array:
You should supply your types and provide actual TypeScript code.
The following structure should work:
Output