{"ScriptPreparationCode":null,"TestCases":[{"Name":"for .. break","Code":"class InventoryCategory {\r\n constructor(name, lines) {\r\n this._name = name;\r\n this._lines = lines || [];\r\n }\r\n\r\n getName() {\r\n return this._name;\r\n }\r\n\r\n getLines() {\r\n return this._lines;\r\n }\r\n}\r\n\r\nlet categories = [\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]), new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]), new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]), new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027last\u0027, [{ name: \u0027Line 13\u0027 }, { name: \u0027Line 14\u0027 }, { name: \u0027Line 15\u0027 }])]\r\n\r\n\r\n for (const category of categories) {\r\n if (category.getName() === name) {\r\n return category;\r\n }\r\n }\r\nreturn null","IsDeferred":false},{"Name":"find()","Code":"class InventoryCategory {\r\n constructor(name, lines) {\r\n this._name = name;\r\n this._lines = lines || [];\r\n }\r\n\r\n getName() {\r\n return this._name;\r\n }\r\n\r\n getLines() {\r\n return this._lines;\r\n }\r\n}\r\n\r\nlet categories = [\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]), new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]), new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]), new InventoryCategory(\u0027Category 1\u0027, [{ name: \u0027Line 1\u0027 }, { name: \u0027Line 2\u0027 }, { name: \u0027Line 3\u0027 }]),\r\n new InventoryCategory(\u0027Category 2\u0027, [{ name: \u0027Line 4\u0027 }, { name: \u0027Line 5\u0027 }, { name: \u0027Line 6\u0027 }]),\r\n new InventoryCategory(\u0027Category 3\u0027, [{ name: \u0027Line 7\u0027 }, { name: \u0027Line 8\u0027 }, { name: \u0027Line 9\u0027 }]),\r\n new InventoryCategory(\u0027Category 4\u0027, [{ name: \u0027Line 10\u0027 }, { name: \u0027Line 11\u0027 }, { name: \u0027Line 12\u0027 }]),\r\n new InventoryCategory(\u0027last\u0027, [{ name: \u0027Line 13\u0027 }, { name: \u0027Line 14\u0027 }, { name: \u0027Line 15\u0027 }])]\r\n\r\n\r\nreturn categories.find(c =\u003E c.getName() === \u0027last\u0027) || null;","IsDeferred":false}]}