{"ScriptPreparationCode":null,"TestCases":[{"Name":"filter,map","Code":"const isFeatureNode = (feature) =\u003E feature.type === \u0027Feature\u0027;\r\nconst newNodes=[{type:\u0027Feature\u0027, id:1}, {type:\u0027non\u0027, id:2}, {type:\u0027Feature\u0027, id:3}, {type:\u0027non\u0027, id:4}];\r\nnewNodes.filter((feature) =\u003E !isFeatureNode(feature)).map((node) =\u003E node.id);\r\n","IsDeferred":false},{"Name":"reduce spread","Code":"const isFeatureNode = (feature) =\u003E feature.type === \u0027Feature\u0027;\r\nconst newNodes=[{type:\u0027Feature\u0027, id:1}, {type:\u0027non\u0027, id:2}, {type:\u0027Feature\u0027, id:3}, {type:\u0027non\u0027, id:4}];\r\nnewNodes.reduce((acc, feature) =\u003E (\r\n !isFeatureNode(feature) ? [...acc, feature.id] : acc\r\n), []);","IsDeferred":false},{"Name":"reduce push","Code":"const isFeatureNode = (feature) =\u003E feature.type === \u0027Feature\u0027;\r\nconst newNodes=[{type:\u0027Feature\u0027, id:1}, {type:\u0027non\u0027, id:2}, {type:\u0027Feature\u0027, id:3}, {type:\u0027non\u0027, id:4}];\r\nnewNodes.reduce((acc, feature) =\u003E {\r\n if (!isFeatureNode(feature)) {\r\n acc.push(feature);\r\n }\r\n return acc;\r\n}, []);","IsDeferred":false}]}