I have two arrays of objects:
var a = [ {\'id\': 20}, {\'id\': 15}, {\'id\': 10}, {\'id\': 17}, {\'id\': 23} ]; var b = [ {\'id\': 90}, {\'id\
If you not adverse to including a library use underscore.js it has a good intersection function http://documentcloud.github.com/underscore/