Songbird contains a lot of utilities to make tasks you would do in a media player easier. Or just things you would generally like to do with XPCOM.
Components.utils.import(“rel:ArrayConverter.jsm”);
Allows one to convert a JS array to XPCOM Arrays (like nsIArray). Documentation doesn't seem to generate for it, but it's located in components/jscodelib/ArrayConverter.jsm