New to JavaScript and have very limited knowledge of JS objects. I want to get difference of two JS objects.
a=[{"month":1,"year":2015},{"month":2,"year":2015},{"month":3,"year":2015},{"month":4,"year":2015},{"month":5,"year":2015}];
b=[{"month":1,"year":2015},{"month":2,"year":2015},{"month":5,"year":2015}];
The result I dreamed should be
result=[{"month":3,"year":2015},{"month":4,"year":2015}];
I got the above format using JSON.stringify
.