{"ScriptPreparationCode":"const user1 = {\r\n email: null\r\n}\r\nconst user2 = {\r\n email: null\r\n}\r\n\r\nfunction matchesAny (a, b, paths = []) {\r\n return paths.some((path) =\u003E Boolean(_.get(a, path)) \u0026\u0026 _.get(a, path) === _.get(b, path))\r\n}\r\n\r\nfunction matchesAnyAssignment (a, b, paths = []) {\r\n return paths.some((path) =\u003E {\r\n const pathA = _.get(a, path)\r\n const pathB = _.get(b, path)\r\n Boolean(pathA) \u0026\u0026 pathA === pathB\r\n })\r\n}","TestCases":[{"Name":"Multiple get","Code":"matchesAny({email: null}, {email: null}, [\u0027email\u0027])","IsDeferred":false},{"Name":"With Assignment","Code":"matchesAnyAssignment({email: null}, {email: null}, [\u0027email\u0027])","IsDeferred":false}]}