var diff = $(a).not(b).get(); // https://stackoverflow.com/questions/41801729/finding-missing-element-in-two-array-for-javascript