{"ScriptPreparationCode":"invalidThings = [\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022, \u0022horrible\u0022],\r\n id: \u00220f45211e-a107-3456-a3fd-24e5d23f2916\u0022,\r\n indexId: 1,\r\n name: \u0022Test1\u0022\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022horrible\u0022],\r\n id: \u00220505f987-a1a6-48aa-973d-7844d1f618d9\u0022,\r\n indexId: 11,\r\n name: \u0022Test12\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022, \u0022horrible\u0022, \u0022bla\u0022],\r\n id: \u0022bbf0248a-709a-4480-abec-99d8ca658663\u0022,\r\n indexId: 21,\r\n name: \u0022Test14\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022, \u0022horrible\u0022],\r\n id: \u00223b79317e-494d-421a-84a6-0920a8990f57\u0022,\r\n indexId: 13,\r\n name: \u0022Test15\u0022,\r\n },\r\n {\r\n falseThing: [ \u0022horrible\u0022],\r\n id: \u00220e33ed07-39b2-4f10-958f-2403545687c5\u0022,\r\n indexId: 2,\r\n name: \u0022Test17\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022, \u0022horrible\u0022],\r\n id: \u00221370c9c8-ab0c-4023-b71a-18de7bd19e0b\u0022,\r\n indexId: 4,\r\n name: \u0022Test18\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022, \u0022horrible\u0022],\r\n id: \u002200c6dfb2-a716-43a0-b453-529de59107cf\u0022,\r\n indexId: 6,\r\n name: \u0022Test19\u0022,\r\n },\r\n {\r\n falseThing: [ \u0022wrong\u0022, \u0022horrible\u0022],\r\n id: \u002257750eee-07d7-4cf0-be83-03b6fc62dbd1\u0022,\r\n indexId: 3,\r\n name: \u0022Test110\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022],\r\n id: \u00228870af0a-4d7e-4592-b859-3cc364035616\u0022,\r\n indexId: 14,\r\n name: \u0022Test11\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022, \u0022wrong\u0022, \u0022horrible\u0022],\r\n id: \u00223c41c45e-87ef-4060-948a-06c490a5cded\u0022,\r\n indexId: 2,\r\n name: \u00221Test12\u0022,\r\n }\r\n];\r\n\r\nremovedInvalidThings = [\r\n {\r\n falseThing: [\u0022bad\u0022],\r\n id: \u00220505f987-a1a6-48aa-973d-7844d1f618d9\u0022,\r\n indexId: 11,\r\n name: \u0022Test12\u0022,\r\n },\r\n {\r\n falseThing: [\u0022bad\u0022],\r\n id: \u0022bbf0248a-709a-4480-abec-99d8ca658663\u0022,\r\n indexId: 21,\r\n name: \u0022Test14\u0022,\r\n }\r\n];","TestCases":[{"Name":"filter \u0026 some","Code":"let result = invalidThings.filter(invalidThing =\u003E !removedInvalidThings.some(removedInvalidThing =\u003E removedInvalidThing.id === invalidThing.id))\r\n\r\nconsole.log(result)","IsDeferred":false},{"Name":"for \u0026 if \u0026 some","Code":"result = [];\r\n\r\nfor (const invalidThing of invalidThings) {\r\n if (!removedInvalidThings.some( removedInvalidThing =\u003E removedInvalidThing.id === invalidThing.id)) {\r\n result.push(invalidThing)\r\n }\r\n}\r\n\r\nconsole.log(result);","IsDeferred":false}]}