{ "data": { "question": { "questionId": "2774", "questionFrontendId": "2700", "categoryTitle": "JavaScript", "boundTopicId": 2278876, "title": "Differences Between Two Objects", "titleSlug": "differences-between-two-objects", "content": null, "translatedTitle": "两个对象之间的差异", "translatedContent": null, "isPaidOnly": true, "difficulty": "Medium", "likes": 9, "dislikes": 0, "isLiked": null, "similarQuestions": "[{\"title\": \"JSON Deep Equal\", \"titleSlug\": \"json-deep-equal\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5b8c\\u5168\\u76f8\\u7b49\\u7684 JSON \\u5b57\\u7b26\\u4e32\", \"isPaidOnly\": true}, {\"title\": \"Convert Object to JSON String\", \"titleSlug\": \"convert-object-to-json-string\", \"difficulty\": \"Medium\", \"translatedTitle\": \"\\u5c06\\u5bf9\\u8c61\\u8f6c\\u6362\\u4e3a JSON \\u5b57\\u7b26\\u4e32\", \"isPaidOnly\": true}]", "contributors": [], "langToValidPlayground": null, "topicTags": [], "companyTagStats": null, "codeSnippets": null, "stats": "{\"totalAccepted\": \"961\", \"totalSubmission\": \"1.6K\", \"totalAcceptedRaw\": 961, \"totalSubmissionRaw\": 1581, \"acRate\": \"60.8%\"}", "hints": [ "Find the intersection of the keys/indices on the two arrays/objects.", "Analyze the data structure recursively.", "For each key in the intersection, omit if there are no differences in the leaves. Otherwise return the difference." ], "solution": null, "status": null, "sampleTestCase": "{}\n{\"a\": 1, \"b\": 2}", "metaData": "{\n \"name\": \"objDiff\",\n \"params\": [\n {\n \"name\": \"obj1\",\n \"type\": \"string\"\n },\n {\n \"type\": \"string\",\n \"name\": \"obj2\"\n }\n ],\n \"return\": {\n \"type\": \"integer\"\n },\n \"languages\": [\n \"javascript\",\n \"typescript\"\n ],\n \"manual\": true\n}", "judgerAvailable": true, "judgeType": "large", "mysqlSchemas": [], "enableRunCode": true, "envInfo": "{\"javascript\":[\"JavaScript\",\"
\\u7248\\u672c\\uff1a \\u60a8\\u7684\\u4ee3\\u7801\\u5728\\u6267\\u884c\\u65f6\\u5c06\\u5e26\\u4e0a lodash.js<\\/a> \\u5e93\\u5df2\\u7ecf\\u9ed8\\u8ba4\\u88ab\\u5305\\u542b\\u3002<\\/p>\\r\\n\\r\\n \\u60a8\\u53ef\\u4f7f\\u7528 datastructures-js <\\/a>\\u5e93\\u6240\\u63d0\\u4f9b\\u7684\\u6570\\u636e\\u7ed3\\u6784\\u3002<\\/p>\"],\"typescript\":[\"TypeScript\",\" TypeScript 5.7.3<\\/p>\\r\\n\\r\\n Compile Options: --alwaysStrict --strictBindCallApply --strictFunctionTypes --target ES2024<\\/p>\\r\\n\\r\\n lodash.js<\\/a> \\u5e93\\u5df2\\u7ecf\\u9ed8\\u8ba4\\u88ab\\u5305\\u542b\\u3002<\\/p>\\r\\n\\r\\nNode.js 22.14.0<\\/code><\\/p>\\r\\n\\r\\n
--harmony<\\/code> \\u6807\\u8bb0\\u6765\\u5f00\\u542f \\u65b0\\u7248ES6\\u7279\\u6027<\\/a>\\u3002<\\/p>\\r\\n\\r\\n