I'm running a recursive site search to find all lists of a certain type.
It would seem to be much faster to be able to run get_lists().getByType(SP.ListTemplateType.announcements)
Is this possible, or do I need to get all lists, and then loop through each like this:
while (listEnumerator.moveNext()) { var oList = listEnumerator.get_current(); if(oList.get_baseTemplate() == SP.ListTemplateType.announcements) { //do domething } }