@@ -26,6 +26,7 @@ const { ENTER, ESCAPE, UP, DOWN, LEFT, RIGHT, SPACE } = keycodes;
2626/**
2727 * Recursively select the firstChild until hitting a leaf node.
2828 * @param {Node } node the node to find the recursive first child.
29+ *
2930 * @returns {Node } the first leaf-node >= node in the ordering.
3031 */
3132function descendFirst ( node ) {
@@ -39,6 +40,7 @@ function descendFirst( node ) {
3940/**
4041 * Recursively select the lastChild until hitting a leaf node.
4142 * @param {Node } node the node to find the recursive last child.
43+ *
4244 * @returns {Node } the first leaf-node <= node in the ordering.
4345 */
4446function descendLast ( node ) {
@@ -52,6 +54,7 @@ function descendLast( node ) {
5254/**
5355 * Is the node a text node.
5456 * @param {?Node } node the node to check.
57+ *
5558 * @returns {boolean } true if the node is a text node.
5659 */
5760function isTextNode ( node ) {
@@ -61,6 +64,7 @@ function isTextNode( node ) {
6164/**
6265 * Return the node only if it is a text node, otherwise return null.
6366 * @param {?Node } node the node to filter.
67+ *
6468 * @returns {?Node } the node or null if it is not a text node.
6569 */
6670function onlyTextNode ( node ) {
@@ -70,6 +74,7 @@ function onlyTextNode( node ) {
7074/**
7175 * Find the index of the last charater in the text that is whitespace.
7276 * @param {String } text the text to search.
77+ *
7378 * @returns {Number } the last index of a white space character in the text or -1.
7479 */
7580function lastIndexOfSpace ( text ) {
0 commit comments