async categorizeFilteredBookmarks(results) {
		let categorized = {folder: []};
		return results.reduce((acc,cur) => {
			if (cur.url && cur.url.startsWith('place:')) {
				return acc;
			} else if (cur.type === FOLDER) {
				acc.folder.push(cur.id);
				return acc;
			}
			if (!acc[cur.parentId]) {
				acc[cur.parentId] = [];
			}
			acc[cur.parentId].push(cur);
			return acc;
		}, categorized);
	}
/**
	 * Given a list of BookmarkTreeNodes returned from bookmark API search, categorize by parent ID
	 *
	 * @param  {[BookmarkTreeNode]} results - Array of nodes returned from bookmarks.search()
	 *
	 * @return {Object} - Object mapping parent IDs to search results
	 */
Given a list of BookmarkTreeNodes returned from bookmark API search, categorize by parent ID
@param  {[BookmarkTreeNode]} results - Array of nodes returned from bookmarks.search()

@return {Object} - Object mapping parent IDs to search results
Given a list of BookmarkTreeNodes returned from bookmark API search categorize by parent ID @param { [ BookmarkTreeNode ] } results - Array of nodes returned from bookmarks . search () @return { Object } - Object mapping parent IDs to search results
async categorizeFilteredBookmarks(results) {
		let categorized = {folder: []};
		return results.reduce((acc,cur) => {
			if (cur.url && cur.url.startsWith('place:')) {
				return acc;
			} else if (cur.type === FOLDER) {
				acc.folder.push(cur.id);
				return acc;
			}
			if (!acc[cur.parentId]) {
				acc[cur.parentId] = [];
			}
			acc[cur.parentId].push(cur);
			return acc;
		}, categorized);
	}
async categorizeFilteredBookmarks ( results ) { let categorized = { folder : [ ] } ; return results . reduce ( ( acc , cur ) => { if ( cur . url && cur . url . startsWith ( 'place:' ) ) { return acc ; } else if ( cur . type === FOLDER ) { acc . folder . push ( cur . id ) ; return acc ; } if ( ! acc [ cur . parentId ] ) { acc [ cur . parentId ] = [ ] ; } acc [ cur . parentId ] . push ( cur ) ; return acc ; } , categorized ) ; }
Given a list of BookmarkTreeNodes returned from bookmark API search, categorize by parent ID
 @param  {[BookmarkTreeNode]} results - Array of nodes returned from bookmarks.search()
Given a list of BookmarkTreeNodes returned from bookmark API search categorize by parent ID @param { [ BookmarkTreeNode ] } results - Array of nodes returned from bookmarks . search ()