async mapBookmarkParents(bookmarkTreeNode) {
		let bookmarkParentIds = {};
		let nodeStack = [];
		nodeStack.push(bookmarkTreeNode);
		let currentNode;
		while (nodeStack.length) {
			currentNode = nodeStack.pop();
			if (currentNode.children) {
				bookmarkParentIds[currentNode.id] = {
					title: currentNode.title,
					parentId: currentNode.parentId
				};
				for (child of currentNode.children) {
					if (child.children) {
						nodeStack.push(child);
					}
				}
			}
		}
		return bookmarkParentIds;
	}
/**
	 * Create an object mapping each bookmark's internal ID to its title + its
	 * parent's ID
	 *
	 * @param  {BookmarkTreeNode} bookmarkTreeNode - a bookmarkTreeNode returned by the bookmark API
	 * @return {object}
	 */
Create an object mapping each bookmark's internal ID to its title + its
parent's ID

@param  {BookmarkTreeNode} bookmarkTreeNode - a bookmarkTreeNode returned by the bookmark API
@return {object}
Create an object mapping each bookmark ' s internal ID to its title + its parent ' s ID @param { BookmarkTreeNode } bookmarkTreeNode - a bookmarkTreeNode returned by the bookmark API @return { object }
async mapBookmarkParents(bookmarkTreeNode) {
		let bookmarkParentIds = {};
		let nodeStack = [];
		nodeStack.push(bookmarkTreeNode);
		let currentNode;
		while (nodeStack.length) {
			currentNode = nodeStack.pop();
			if (currentNode.children) {
				bookmarkParentIds[currentNode.id] = {
					title: currentNode.title,
					parentId: currentNode.parentId
				};
				for (child of currentNode.children) {
					if (child.children) {
						nodeStack.push(child);
					}
				}
			}
		}
		return bookmarkParentIds;
	}
async mapBookmarkParents ( bookmarkTreeNode ) { let bookmarkParentIds = { } ; let nodeStack = [ ] ; nodeStack . push ( bookmarkTreeNode ) ; let currentNode ; while ( nodeStack . length ) { currentNode = nodeStack . pop ( ) ; if ( currentNode . children ) { bookmarkParentIds [ currentNode . id ] = { title : currentNode . title , parentId : currentNode . parentId } ; for ( child of currentNode . children ) { if ( child . children ) { nodeStack . push ( child ) ; } } } } return bookmarkParentIds ; }
Create an object mapping each bookmark's internal ID to its title + its
 parent's ID
Create an object mapping each bookmark ' s internal ID to its title + its parent ' s ID