{"ScriptPreparationCode":null,"TestCases":[{"Name":"Teste 1","Code":"console.log(extractIdsFromInvoiceTags());\r\n\r\nfunction extractIdsFromInvoiceTags() {\r\n let tagIds = [];\r\n let invoiceTags {\u0022tags\u0022: [{\u0022id\u0022: 1}, {\u0022id\u0022: 2}, {\u0022id\u0022: 3}]};\r\n\r\n if (invoiceTags \u0026\u0026 invoiceTags.tags \u0026\u0026 invoiceTags.tags.length) {\r\n tagIds = invoiceTags.tags.forEach(tagInfo =\u003E {\r\n tagIds.push(tagInfo.id);\r\n })\r\n\r\n return tagIds;\r\n }\r\n}","IsDeferred":false},{"Name":"Teste 2","Code":"console.log(extractIdsFromInvoiceTags());\r\n\r\nfunction extractIdsFromInvoiceTags() {\r\n let invoiceTags {\u0022tags\u0022: [{\u0022id\u0022: 1}, {\u0022id\u0022: 2}, {\u0022id\u0022: 3}]};\r\n\r\n if (invoiceTags \u0026\u0026 invoiceTags.tags \u0026\u0026 invoiceTags.tags.length) {\r\n return invoiceTags.tags.map(tagInfo =\u003E tagInfo.id)\r\n }\r\n}","IsDeferred":false}]}