{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n arr[i] = {\r\n id: i\r\n };\r\n}","TestCases":[{"Name":"For","Code":"const getListOfPropertyValues = (objectsArray, propertyName) =\u003E {\r\n let mappedList = [];\r\n for (const object of objectsArray || []) {\r\n if (propertyName in object) mappedList.push(object[propertyName]);\r\n }\r\n return mappedList;\r\n};\r\n\r\ngetListOfPropertyValues(arr, \u0027id\u0027);","IsDeferred":false},{"Name":"Map, Filter","Code":"const getListOfPropertyValues = (array = [], prop) =\u003E array.map(item =\u003E item[prop]).filter(item =\u003E item);\r\ngetListOfPropertyValues(arr, \u0027id\u0027);","IsDeferred":false}]}