JavaScript one liner using just filter.
\n\n/**\n * @param {number[]} nums1\n * @param {number[]} nums2\n * @return {number[][]}\n */\nvar findDifference = function(nums1, nums2) {\n    return([nums1.
\n```\n/**\n * @param {number[]} nums1\n * @param {number[]} nums2\n * @return {number[][]}\n */\nvar findDifference = function(nums1, nums2) {\n    return([nums1.filter((e,i)=> nums1.indexOf(e) === i && !nums2.includes(e)),nums2.filter((e,i)=> nums2.indexOf(e) === i && !nums1.includes(e))]);\n};\n```
['JavaScript']