Answer the question
In order to leave comments, you need to log in
What does value: [string, any] mean?
I don't see in the doc what the data format is
https://www.typescriptlang.org/docs/handbook/2/nar...
https://www.tutorialsteacher.com/typescript/typesc...
Object.entries(objectOfObjects).forEach((value: [string, any], index: number) => {
console.trace({value}); // {value: Array(2)} --->["teststr", "test"]
console.trace({index}); // {index: 0}
});
Object.entries(objectOfObjects).forEach((value: string | any, index: number) => {
Object.entries(violations).forEach((value: (string | any)[], index: number) => {
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question