{"ScriptPreparationCode":"var statuses = [\u0022active\u0022, \u0022inactive\u0022, \u0022nvmnghia\u0022, \u0022bienpm\u0022];\r\nvar data = Array.from({ length: 1_000 }, () =\u003E ({\r\n status: statuses[Math.floor(Math.random() * statuses.length)],\r\n}));\r\n","TestCases":[{"Name":"filter","Code":" const active = data.filter((item) =\u003E item.status === \u0022active\u0022);\r\n const inactive = data.filter((item) =\u003E item.status === \u0022inactive\u0022);\r\n const nvmnghia = data.filter((item) =\u003E item.status === \u0022nvmnghia\u0022);\r\n const bienpm = data.filter((item) =\u003E item.status === \u0022bienpm\u0022);\r\n\r\n return { active, inactive, nvmnghia, bienpm };\r\n","IsDeferred":false},{"Name":"forEach","Code":" const active = [];\r\n const inactive = [];\r\n const nvmnghia = [];\r\n const bienpm = [];\r\n\r\n data.forEach((item) =\u003E {\r\n if (item.status === \u0022active\u0022) active.push(item);\r\n else if (item.status === \u0022inactive\u0022) inactive.push(item);\r\n else if (item.status === \u0022nvmnghia\u0022) nvmnghia.push(item);\r\n else if (item.status === \u0022bienpm\u0022) bienpm.push(item);\r\n });\r\n\r\n","IsDeferred":false}]}