JS Solution
\n# Code\n\nvar isPossibleToSplit = function(nums) {\n  if (nums.length % 2 !== 0) {\n    return false;\n  }\n\n  const nums1 = new Set();\n  const nums2 = new 
\n# Code\n```\nvar isPossibleToSplit = function(nums) {\n  if (nums.length % 2 !== 0) {\n    return false;\n  }\n\n  const nums1 = new Set();\n  const nums2 = new Set();\n\n  for (const num of nums) {\n    if (!nums1.has(num)) {\n      nums1.add(num);\n    } else if (!nums2.has(num)) {\n      nums2.add(num);\n    } else {\n      return false;\n    }\n  }\n\n  return nums1.size + nums2.size === nums.length; \n};\n```
['JavaScript']