{"ScriptPreparationCode":"var array1 = [{name: \u0027foo\u0027, value: 3},{name:\u0027bar\u0027, value: 4},{name:\u0027x\u0027, value: 0}]\r\nvar array2 = [{name: \u0027foo\u0027, type: \u0027a\u0027},{name:\u0027baz\u0027, type:\u0027b\u0027},{name:\u0027x\u0027, type:\u0027c\u0027}]","TestCases":[{"Name":"_.differenceBy","Code":"var difference = _.differenceBy(array1, array2, \u0027name\u0027)","IsDeferred":false},{"Name":"Native","Code":"if (array1) { \r\n if (array2) { \r\n var difference = [array1.map(a =\u003E a.name), array2.map(a =\u003E a.name)]\r\n .reduce((a, b) =\u003E a.filter(c =\u003E !b.includes(c))) \r\n } else {\r\n array1\r\n }\r\n}","IsDeferred":false}]}