{"ScriptPreparationCode":" var arr = [];\r\n for (var i = 0; i \u003C 1000; i\u002B\u002B) {\r\n arr[i] = { dataValues: {\r\n \u0022code\u0022: \u0022GB!BA\u0022 \u002B i,\r\n \u0022crsCode\u0022: null,\r\n \u0022nlcCode\u0022: null,\r\n \u0022type\u0022: \u0022Station\u0022,\r\n \u0022name\u0022: \u0022Barrow\u002BBus\u0022,\r\n \u0022mainStation\u0022: \u0022NO\u0022,\r\n \u0022countryCode\u0022: \u0022GB\u0022,\r\n \u0022timeZone\u0022: \u0022Europe/London\u0022,\r\n \u0022latitude\u0022: null,\r\n \u0022longitude\u0022: null,\r\n \u0022stateProvinceCode\u0022: null,\r\n \u0022itineraryStation\u0022: \u0022OUTPUT_ONLY\u0022,\r\n \u0022fareStation\u0022: \u0022OUTPUT_ONLY\u0022,\r\n \u0022status\u0022: null,\r\n \u0022chilternStation\u0022: null,\r\n \u0022preferredStation\u0022: null,\r\n \u0022createdAt\u0022: \u00222017-10-05T16:22:16.000Z\u0022,\r\n \u0022updatedAt\u0022: \u00222018-06-25T10:28:01.000Z\u0022,\r\n \u0022suppliers\u0022: \u0022[{\\\u0022memberStations\\\u0022: [],\\\u0022groupStations\\\u0022: [],\\\u0022source\\\u0022: \\\u0022ATOC\\\u0022,\\\u0022type\\\u0022: \\\u0022ALIAS\\\u0022,\\\u0022codeType\\\u0022: null,\\\u0022typeName\\\u0022: null,\\\u0022alias\\\u0022: \\\u0022Barrow\u002BBus\\\u0022}]\u0022,\r\n \u0022smartCardSupport\u0022: false\r\n }};\r\n }\r\n \r\n function someFn(model) {\r\n const interfce = {\r\n code: model.dataValues.code,\r\n crsCode: model.dataValues.crsCode,\r\n nlcCode: model.dataValues.nlcCode,\r\n type: model.dataValues.type,\r\n name: model.dataValues.name,\r\n mainStation: model.dataValues.mainStation,\r\n iataCode: model.dataValues.iataCode,\r\n countryCode: model.dataValues.countryCode,\r\n timeZone: model.dataValues.timeZone,\r\n latitude: model.dataValues.latitude,\r\n longitude: model.dataValues.longitude,\r\n city: model.dataValues.city,\r\n stateProvinceCode: model.dataValues.stateProvinceCode,\r\n itineraryStation: model.dataValues.itineraryStation,\r\n fareStation: model.dataValues.fareStation,\r\n status: model.dataValues.status,\r\n chilternStation: model.dataValues.chilternStation,\r\n preferredStation: model.dataValues.preferredStation,\r\n createdAt: model.dataValues.createdAt,\r\n updatedAt: model.dataValues.updatedAt,\r\n suppliers: model.dataValues.suppliers,\r\n smartCardSupport: model.dataValues.smartCardSupport\r\n };\r\n\r\n return interfce;\r\n }","TestCases":[{"Name":"foreach","Code":"var newArray = [];\r\narr.forEach(function (item){\r\n var interface = someFn(item);\r\n newArray.push(interface);\r\n})","IsDeferred":false},{"Name":"for","Code":"var newArray = [];\r\nfor (var i = 0, len = arr.length; i \u003C len; i\u002B\u002B) {\r\n var interface = someFn(arr[i]);\r\n newArray.push(interface);\r\n}","IsDeferred":false},{"Name":"map","Code":"var newArray = arr.map(item =\u003E someFn(item));","IsDeferred":false}]}