{"ScriptPreparationCode":"var items = [\r\n { id: 1, title: \u00271\u0027, isManager: true},\r\n { id: 2, title: \u00272\u0027, isManager: true},\r\n { id: 3, title: \u00273\u0027, isManager: false},\r\n { id: 4, title: \u00273\u0027, isManager: true},\r\n { id: 5, title: \u00274\u0027, isManager: false},\r\n { id: 6, title: \u00275\u0027, isManager: true},\r\n { id: 7, title: \u00276\u0027, isManager: true},\r\n { id: 8, title: \u00277\u0027, isManager: false},\r\n { id: 9, title: \u00278\u0027, isManager: true},\r\n { id: 10, title: \u00279\u0027, isManager: false},\r\n { id: 11, title: \u002710\u0027, isManager: false},\r\n { id: 12, title: \u002711\u0027, isManager: true},\r\n { id: 13, title: \u002712\u0027, isManager: true},\r\n { id: 14, title: \u002713\u0027, isManager: false},\r\n { id: 15, title: \u002714\u0027, isManager: true},\r\n { id: 16, title: \u002715\u0027, isManager: true},\r\n { id: 17, title: \u002716\u0027, isManager: false}\r\n]","TestCases":[{"Name":"filter().map()","Code":"items.filter(item =\u003E item.isManager).map(item =\u003E ({id: item.id, value: item.id, label: item.title}));","IsDeferred":false},{"Name":"flatMap()","Code":"items.flatMap(({ isManager, id, title: label }) =\u003E isManager ? [{ id, value: id, label }] : []);","IsDeferred":false}]}